diff options
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) }} |