feat: Set option for allowing only certain domains to register (#1086)

This commit is contained in:
yatesdr
2024-10-19 07:51:20 -04:00
committed by GitHub
parent aa8a2d92dc
commit 673ddeb5bd
3 changed files with 18 additions and 2 deletions

View File

@@ -130,6 +130,10 @@ USERS_CAN_SELF_REGISTER = True
RESTRICTED_DOMAINS_FOR_USER_REGISTRATION = ["xxx.com", "emaildomainwhatever.com"]
# Comma separated list of domains: ["organization.com", "private.organization.com", "org2.com"]
# Empty list disables.
ALLOWED_DOMAINS_FOR_USER_REGISTRATION = []
# django rest settings
REST_FRAMEWORK = {
"DEFAULT_AUTHENTICATION_CLASSES": (