Skip to content
Snippets Groups Projects
Commit 49ef71d5 authored by Jan Hartig's avatar Jan Hartig
Browse files

Fix hardcoded mail suffix length

parent 2695b223
Branches
No related tags found
1 merge request!4Merge new features and fixes
Pipeline #25810 passed
......@@ -73,7 +73,7 @@ def upload(language: str):
return process_file()
else:
if form.email.data:
form.email.data = form.email.data[:-7]
form.email.data = form.email.data[:-len(current_app.config["MAIL_DOMAIN"])]
if language != current_app.config["DEFAULT_LANGUAGE"]:
form.email.label.text = current_app.config["LOCALISATIONS"]["email"]["label"][language]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment