Skip to content

Commit 8af9197

Browse files
authored
Merge pull request #1580 from ImageMarkup/disable-registration
Temporarily disable user registration
2 parents 257e457 + 36d9a07 commit 8af9197

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

isic/settings/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@
141141
ACCOUNT_LOGOUT_REDIRECT_URL = "/"
142142
ACCOUNT_SIGNUP_FORM_CLASS = "resonant_utils.allauth.FullNameSignupForm"
143143

144+
# Signups are closed while an automated signup campaign is abusing the confirmation
145+
# emails. An amount of 0 rejects every POST to the signup view; this dict is merged
146+
# into allauth's defaults, so the other rate limits are unaffected.
147+
ACCOUNT_RATE_LIMITS = {"signup": "0/m/ip"}
148+
144149
SOCIALACCOUNT_PROVIDERS: dict[str, dict[str, Any]] = {}
145150

146151
# The presence of "google" inside SOCIALACCOUNT_PROVIDERS causes the GUI to display

0 commit comments

Comments
 (0)