Implement change password

This commit is contained in:
rubenwardy
2020-12-04 23:07:19 +00:00
parent bfcdd642fd
commit 43aab057c8
15 changed files with 88 additions and 53 deletions

View File

@@ -21,8 +21,8 @@
<form action="" method="POST" class="form" role="form">
{{ form.hidden_tag() }}
{% if not current_user.email %}
{{ render_field(form.email, tabindex=230) }}
{% if form.email and not current_user.email %}
{{ render_field(form.email, tabindex=220) }}
<p>
Your email is needed to recover your account if you forget your
@@ -31,6 +31,10 @@
</p>
{% endif %}
{% if form.old_password %}
{{ render_field(form.old_password, tabindex=230) }}
{% endif %}
{{ render_field(form.password, tabindex=230) }}
{{ render_field(form.password2, tabindex=240) }}