Skip to content

Commit 232051b

Browse files
authored
Merge pull request #323 from OpenGeoscience/email-verify-code
Use codes for email verification
2 parents 7a3a835 + a92bcb0 commit 232051b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

uvdat/settings/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
ACCOUNT_LOGOUT_REDIRECT_URL = "/"
121121
ACCOUNT_SIGNUP_FORM_CLASS = "resonant_utils.allauth.FullNameSignupForm"
122122

123+
# Use codes for email verification; links can be modified by Microsoft Safe Links
124+
ACCOUNT_EMAIL_VERIFICATION_BY_CODE_ENABLED = True
125+
123126
AUTHENTICATION_BACKENDS.append("guardian.backends.ObjectPermissionBackend")
124127
# django-guardian; raise PermissionDenied exception instead of redirecting to login page
125128
GUARDIAN_RAISE_403 = True

0 commit comments

Comments
 (0)