From b94bad829c1fd4b4325a4af280d33d50f164e05f Mon Sep 17 00:00:00 2001 From: 0livd Date: Thu, 26 Oct 2017 19:46:34 +0200 Subject: Use token based auth to reset passwords (#269) Send a mail containing a password reset token link instead of sending a clear text password. Ref #232 --- ihatemoney/templates/forms.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ihatemoney/templates/forms.html') diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index ffdd165..63d1c3c 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -159,10 +159,18 @@ {% endmacro %} {% macro remind_password(form) %} - {% include "display_errors.html" %} {{ form.hidden_tag() }} {{ input(form.id) }} {{ submit(form.submit) }} {% endmacro %} + +{% macro reset_password(form) %} + {% include "display_errors.html" %} + {{ form.hidden_tag() }} + {{ input(form.password) }} + {{ input(form.password_confirmation) }} + {{ submit(form.submit) }} + +{% endmacro %} -- cgit v1.1