Implement change password
This commit is contained in:
@@ -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) }}
|
||||
|
||||
Reference in New Issue
Block a user