commit c818242bdcc5af7519d7b9eabf19cb001106ad55
parent 4c341244f5427e9faeaf72764839aa3001778775
Author: parazyd <parazyd@dyne.org>
Date: Tue, 22 Jan 2019 16:26:15 +0100
Add a button for a user to change their password on their profile.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/templates/profile.html b/templates/profile.html
@@ -9,6 +9,11 @@
<h1 class="cover-heading">Diaries by {{ name }}</h1>
<hr>
+ {% if current_user.id == uid %}
+ <a href="/changepass" class="btn btn-outline-secondary">Change your password</a>
+ <hr>
+ {% endif %}
+
{% include 'gallery.html' %}
{% if current_user.is_active %}