aboutsummaryrefslogtreecommitdiff
path: root/app/templates/users/user_profile_page.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-29 18:07:23 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-29 18:07:23 +0100
commit6353ac29e93877aa840ace90b0c4ce9bea7db313 (patch)
tree817b0ed8df831aeea52719e7d3fff664af73c634 /app/templates/users/user_profile_page.html
parenta4b583bac50dd00908e0ca38d4f79f3d01c02497 (diff)
downloadcheatdb-6353ac29e93877aa840ace90b0c4ce9bea7db313.tar.xz
Add set password form
Diffstat (limited to 'app/templates/users/user_profile_page.html')
-rw-r--r--app/templates/users/user_profile_page.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html
index 062e9e8..c1cdb00 100644
--- a/app/templates/users/user_profile_page.html
+++ b/app/templates/users/user_profile_page.html
@@ -42,6 +42,18 @@
{% endif %}
</td>
</tr>
+ {% if user == current_user %}
+ <tr>
+ <td>Password:</td>
+ <td>
+ {% if user.password %}
+ Set | <a href="{{ url_for('user.change_password') }}">Change</a>
+ {% else %}
+ Not set | <a href="{{ url_for('set_password_page') }}">Set</a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endif %}
</table>
</div>