Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Move the email changing logic to allauth

Roland Geiderae767543ed0b
diff --git a/settings/settings_global.py b/settings/settings_global.py
index 87eed9bd1..fab7ae705 100644
--- a/settings/settings_global.py
+++ b/settings/settings_global.py
@@ -233,6 +233,11 @@ ACCOUNT_CHANGE_EMAIL = True
# authentication backend resolves the email against its EmailAddress table.
ACCOUNT_LOGIN_METHODS = {'username', 'email'}
+# Treat a user as having a single email address: changing it adds a pending
+# address that only replaces the current one (and updates User.email) once
+# confirmed via the verification link.
+ACCOUNT_CHANGE_EMAIL = True
+
#
# Login
#