diff options
| author | Alexis M <alexis@notmyidea.org> | 2019-09-18 21:33:47 +0200 |
|---|---|---|
| committer | Alexis M <alexis@notmyidea.org> | 2019-09-18 21:33:47 +0200 |
| commit | 6ccabd08d10eea08886b33736d1185b6824e9103 (patch) | |
| tree | d2be712bd75998101145b5b3ee7e1433ce9e454f | |
| parent | b5d9855bf7a1d00c558cb1b9cc3a3af2b034da6b (diff) | |
| parent | b82d07c3eb4fc63b3fa0b5afbd2b8ac436f6a281 (diff) | |
| download | ihatemoney-mirror-6ccabd08d10eea08886b33736d1185b6824e9103.zip ihatemoney-mirror-6ccabd08d10eea08886b33736d1185b6824e9103.tar.gz ihatemoney-mirror-6ccabd08d10eea08886b33736d1185b6824e9103.tar.bz2 | |
Merge branch 'master' of github.com:spiral-project/ihatemoney
| -rw-r--r-- | ihatemoney/templates/password_reminder_sent.html | 8 | ||||
| -rw-r--r-- | ihatemoney/web.py | 7 |
2 files changed, 5 insertions, 10 deletions
diff --git a/ihatemoney/templates/password_reminder_sent.html b/ihatemoney/templates/password_reminder_sent.html index e424c54..578a7ef 100644 --- a/ihatemoney/templates/password_reminder_sent.html +++ b/ihatemoney/templates/password_reminder_sent.html @@ -1,10 +1,10 @@ {% extends "layout.html" %} {% block content %} -<h2>{{ _(title) }}</h2> +<h2>{{ _("Password reminder") }}</h2> <p> - {{message}} + {{ _("A link to reset your password has been sent to you, please check your emails.") }} </p> -<a class="btn btn-primary" href="{{ url_for('.home')}}">Return to home page</a> - +<a class="btn btn-primary" href="{{ url_for('.home')}}">{{ _('Return to home page') }}</a> + {% endblock %} diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 52b8ed2..3e74362 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -284,12 +284,7 @@ def remind_password(): @main.route("/password-reminder-sent", methods=["GET"]) def password_reminder_sent(): - message = "A link to reset your password has been sent to you, please check your emails." - return render_template( - "password_reminder_sent.html", - title="Password reminder", - message=message - ) + return render_template("password_reminder_sent.html") @main.route('/reset-password', methods=['GET', 'POST']) |
