diff options
author | Marian Sigler <m@qjym.de> | 2012-09-21 16:12:30 +0200 |
---|---|---|
committer | Marian Sigler <m@qjym.de> | 2012-09-21 16:12:30 +0200 |
commit | 2bdceb1209a081e9ccb80a35dd605c120aaf32e9 (patch) | |
tree | 8646d269449061ed1405c8ed114066f2fc685f26 /templates | |
parent | c6d55f462ebc1d5fb387ccc7873582406205bef8 (diff) | |
download | web-2bdceb1209a081e9ccb80a35dd605c120aaf32e9.tar.gz web-2bdceb1209a081e9ccb80a35dd605c120aaf32e9.tar.bz2 web-2bdceb1209a081e9ccb80a35dd605c120aaf32e9.zip |
Send verify mail on change of mail address
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 4 | ||||
-rw-r--r-- | templates/mail/change_mail.txt | 15 |
2 files changed, 17 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index 1873dd3..1886d12 100644 --- a/templates/base.html +++ b/templates/base.html @@ -19,8 +19,8 @@ <h2>{{ title }}</h2> {% endif %} - {%- if session.username %} - <p>Logged in as {{ session.username }}. <a href="{{ url_for('logout') }}">Log out</a></p> + {%- if g.user %} + <p>Logged in as {{ g.user.uid }}. <a href="{{ url_for('logout') }}">Log out</a></p> {%- else %} <p>Not logged in. <a href="{{ url_for('index') }}">Log in</a></p> {%- endif %} diff --git a/templates/mail/change_mail.txt b/templates/mail/change_mail.txt new file mode 100644 index 0000000..c3db6b2 --- /dev/null +++ b/templates/mail/change_mail.txt @@ -0,0 +1,15 @@ +Hallo, + +Jemand, vermutlich du, möchte auf spline accounts [1] die +E-Mail-Adresse des Accounts {{ username }} auf diese Adresse + {{ mail }} +ändern. + +Um diese Änderung zu bestätigen, benutze bitte folgenden Link: + <{{ link }}> + +Wenn du dies nicht möchtest, brauchst du nichts weiter zu tun. +Ohne deine Bestätigung wird deine Adresse nicht eingetragen. + + +[1] {{ url_for('index', _external=True) }} |