aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis M <alexis@notmyidea.org>2019-09-18 21:33:47 +0200
committerAlexis M <alexis@notmyidea.org>2019-09-18 21:33:47 +0200
commit6ccabd08d10eea08886b33736d1185b6824e9103 (patch)
treed2be712bd75998101145b5b3ee7e1433ce9e454f
parentb5d9855bf7a1d00c558cb1b9cc3a3af2b034da6b (diff)
parentb82d07c3eb4fc63b3fa0b5afbd2b8ac436f6a281 (diff)
downloadihatemoney-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.html8
-rw-r--r--ihatemoney/web.py7
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'])