Add warning box to inform user of password change implications

This commit is contained in:
Jonas Schäfer
2021-01-16 14:54:01 +01:00
parent 00f678a86f
commit d8fe169ba4
3 changed files with 74 additions and 28 deletions

View File

@@ -31,6 +31,10 @@
{{ form.new_password_confirm.label(class="required") }}
{{ form.new_password_confirm(class=("has-error" if form.new_password_confirm.name in form.errors else "")) }}
</div>
<div class="box warning">
<header>{% trans %}Warning{% endtrans %}</header>
<p>{% trans %}After changing your password, you will have to enter the new password on all of your devices.{% endtrans %}</p>
</div>
<div class="f-bbox">
<a href="{{ url_for('user.index') }}" class="button secondary">{% trans %}Back{% endtrans %}</a>
<button type="submit" class="primary">{% trans %}Change password{% endtrans %}</button>

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: SnikketWeb 0.1.0\n"
"Report-Msgid-Bugs-To: jonas@zombofant.net\n"
"POT-Creation-Date: 2020-03-07 16:53+0100\n"
"POT-Creation-Date: 2021-01-16 14:53+0100\n"
"PO-Revision-Date: 2020-03-07 16:32+0100\n"
"Last-Translator: Jonas Schäfer <jonas@zombofant.net>\n"
"Language: de\n"
@@ -16,30 +16,39 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"Generated-By: Babel 2.9.0\n"
#: snikket_web/templates/app.html:18 snikket_web/templates/login.html:29
#: snikket_web/__init__.py:38
msgid "Address"
msgstr "Adresse"
#: snikket_web/__init__.py:43
msgid "Password"
msgstr "Passwort"
#: snikket_web/__init__.py:72
#, fuzzy
msgid "Invalid user name or password."
msgstr "Neues Passwort (Bestätigung)"
#: snikket_web/templates/app.html:18 snikket_web/templates/login.html:36
#, python-format
msgid "A <a href=\"%(about_url)s\">Snikket</a> server"
msgstr "Ein <a href=\"%(about_url)s\">Snikket</a>-Server"
#: snikket_web/templates/login.html:4
#: snikket_web/templates/login.html:5
msgid "Snikket Login"
msgstr "Snikket Anmeldung"
#: snikket_web/templates/login.html:13
#: snikket_web/templates/login.html:14
msgid "Enter your Snikket address and password to manage your account."
msgstr "Gib deine Snikket-Adresse und -Passwort ein um dein Konto zu verwalten."
#: snikket_web/templates/login.html:16 snikket_web/templates/login.html:17
msgid "Address"
msgstr "Adresse"
#: snikket_web/templates/login.html:18
msgid "Login failed"
msgstr ""
#: snikket_web/templates/login.html:20 snikket_web/templates/login.html:21
msgid "Password"
msgstr "Passwort"
#: snikket_web/templates/login.html:24
#: snikket_web/templates/login.html:31
msgid "Log in"
msgstr "Anmelden"
@@ -65,7 +74,7 @@ msgstr ""
"einsehen kann."
#: snikket_web/templates/user_home.html:11
#: snikket_web/templates/user_passwd.html:36
#: snikket_web/templates/user_passwd.html:40
msgid "Change password"
msgstr "Passwort ändern"
@@ -98,6 +107,18 @@ msgid "Password change failed"
msgstr "Passwortänderung fehlgeschlagen"
#: snikket_web/templates/user_passwd.html:35
msgid "Warning"
msgstr "Warnung"
#: snikket_web/templates/user_passwd.html:36
msgid ""
"After changing your password, you will have to enter the new password on "
"all of your devices."
msgstr ""
"Nachdem du das Passwort geändert hast, musst du das neue Passwort auf allen"
"Geräten manuell eintragen."
#: snikket_web/templates/user_passwd.html:39
#: snikket_web/templates/user_profile.html:18
msgid "Back"
msgstr "Zurück"

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-03-07 16:53+0100\n"
"POT-Creation-Date: 2021-01-16 14:53+0100\n"
"PO-Revision-Date: 2020-03-07 16:50+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@@ -16,30 +16,39 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
"Generated-By: Babel 2.9.0\n"
#: snikket_web/templates/app.html:18 snikket_web/templates/login.html:29
#: snikket_web/__init__.py:38
msgid "Address"
msgstr "Address"
#: snikket_web/__init__.py:43
msgid "Password"
msgstr "Password"
#: snikket_web/__init__.py:72
#, fuzzy
msgid "Invalid user name or password."
msgstr "Confirm new password"
#: snikket_web/templates/app.html:18 snikket_web/templates/login.html:36
#, python-format
msgid "A <a href=\"%(about_url)s\">Snikket</a> server"
msgstr "A <a href=\"%(about_url)s\">Snikket</a> server"
#: snikket_web/templates/login.html:4
#: snikket_web/templates/login.html:5
msgid "Snikket Login"
msgstr "Snikket Login"
#: snikket_web/templates/login.html:13
#: snikket_web/templates/login.html:14
msgid "Enter your Snikket address and password to manage your account."
msgstr "Enter your Snikket address and password to manage your account."
#: snikket_web/templates/login.html:16 snikket_web/templates/login.html:17
msgid "Address"
msgstr "Address"
#: snikket_web/templates/login.html:18
msgid "Login failed"
msgstr ""
#: snikket_web/templates/login.html:20 snikket_web/templates/login.html:21
msgid "Password"
msgstr "Password"
#: snikket_web/templates/login.html:24
#: snikket_web/templates/login.html:31
msgid "Log in"
msgstr "Log in"
@@ -65,7 +74,7 @@ msgstr ""
" data to others."
#: snikket_web/templates/user_home.html:11
#: snikket_web/templates/user_passwd.html:36
#: snikket_web/templates/user_passwd.html:40
msgid "Change password"
msgstr "Change password"
@@ -96,6 +105,18 @@ msgid "Password change failed"
msgstr "Password change failed"
#: snikket_web/templates/user_passwd.html:35
msgid "Warning"
msgstr "Warning"
#: snikket_web/templates/user_passwd.html:36
msgid ""
"After changing your password, you will have to enter the new password on "
"all of your devices."
msgstr ""
"After changing your password, you will have to enter the new password on "
"all of your devices."
#: snikket_web/templates/user_passwd.html:39
#: snikket_web/templates/user_profile.html:18
msgid "Back"
msgstr "Back"