From d05d01933d215745eb1b5d3da2013335812e2160 Mon Sep 17 00:00:00 2001 From: Rico Ullmann Date: Fri, 31 Dec 2021 22:25:16 +0100 Subject: [PATCH] adjust email value to external-email as we want to use the mail attribute for postfix and dovecot it makes sense to rename the existing email attribute. The external-mail attribute can be used for communication from qzwi to members and/or others, e.g. public authorities, political contacts and so on. --- ldap_frontend/__init__.py | 2 +- ldap_frontend/templates/selfservice.html | 4 ++-- ldap_frontend/translations/de/LC_MESSAGES/messages.po | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ldap_frontend/__init__.py b/ldap_frontend/__init__.py index d5d8fa7..204c96a 100644 --- a/ldap_frontend/__init__.py +++ b/ldap_frontend/__init__.py @@ -103,7 +103,7 @@ def selfservice(ldap): request.form["givenName"], request.form["sn"], ), - "mail": request.form["mail"], + "external-mail": request.form["external-mail"], }, ) flash(gettext("user data was updated")) diff --git a/ldap_frontend/templates/selfservice.html b/ldap_frontend/templates/selfservice.html index c7d243a..e3fe419 100644 --- a/ldap_frontend/templates/selfservice.html +++ b/ldap_frontend/templates/selfservice.html @@ -37,9 +37,9 @@
- +
- +
diff --git a/ldap_frontend/translations/de/LC_MESSAGES/messages.po b/ldap_frontend/translations/de/LC_MESSAGES/messages.po index 946bcaa..6a9684c 100644 --- a/ldap_frontend/translations/de/LC_MESSAGES/messages.po +++ b/ldap_frontend/translations/de/LC_MESSAGES/messages.po @@ -109,8 +109,8 @@ msgid "given name" msgstr "Vorname" #: templates/selfservice.html:40 -msgid "e-mail address" -msgstr "E-Mail-Adresse" +msgid "external e-mail address" +msgstr "Externe E-Mail-Adresse" #: templates/selfservice.html:46 msgid "Update"