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.
This commit is contained in:
Rico 2021-12-31 22:25:16 +01:00
parent c12c58e4dc
commit d05d01933d
Signed by: stillbeben
GPG key ID: AE1066B5BD0B5041
3 changed files with 5 additions and 5 deletions

View file

@ -103,7 +103,7 @@ def selfservice(ldap):
request.form["givenName"], request.form["givenName"],
request.form["sn"], request.form["sn"],
), ),
"mail": request.form["mail"], "external-mail": request.form["external-mail"],
}, },
) )
flash(gettext("user data was updated")) flash(gettext("user data was updated"))

View file

@ -37,9 +37,9 @@
</div> </div>
<div class="row mb-3"> <div class="row mb-3">
<label for="mail" class="form-label col-sm-2">{% trans email %}e-mail address{% endtrans %}</label> <label for="external-mail" class="form-label col-sm-2">{% trans email %}e-mail address{% endtrans %}</label>
<div class="col-sm-10"> <div class="col-sm-10">
<input type="email" name="mail" id="mail" value="{{ CURRENT_USER["mail"]|e }}" required class="form-control"> <input type="email" name="external-mail" id="external-mail" value="{{ CURRENT_USER["external-mail"]|e }}" required class="form-control">
</div> </div>
</div> </div>

View file

@ -109,8 +109,8 @@ msgid "given name"
msgstr "Vorname" msgstr "Vorname"
#: templates/selfservice.html:40 #: templates/selfservice.html:40
msgid "e-mail address" msgid "external e-mail address"
msgstr "E-Mail-Adresse" msgstr "Externe E-Mail-Adresse"
#: templates/selfservice.html:46 #: templates/selfservice.html:46
msgid "Update" msgid "Update"