Skip to content

Commit e85b236

Browse files
committed
Allow EMAIL_DOMAIN_ALLOW_LIST to be null and retain email auth feature
1 parent 373e99b commit e85b236

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pydatalab/src/pydatalab/feature_flags.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ def check_feature_flags(app):
7979
)
8080
FEATURE_FLAGS.email_notifications = False
8181

82-
if CONFIG.EMAIL_DOMAIN_ALLOW_LIST and FEATURE_FLAGS.email_notifications:
82+
if (
83+
CONFIG.EMAIL_DOMAIN_ALLOW_LIST is None or CONFIG.EMAIL_DOMAIN_ALLOW_LIST
84+
) and FEATURE_FLAGS.email_notifications:
8385
FEATURE_FLAGS.auth_mechanisms.email = True
8486
else:
8587
LOGGER.warning(
86-
"`CONFIG.EMAIL_DOMAIN_ALLOW_LIST` is usnet or empty; email registration will not be enabled."
88+
"`CONFIG.EMAIL_DOMAIN_ALLOW_LIST` is unset or empty; email registration will not be enabled."
8789
)
8890

8991
if CONFIG.IDENTIFIER_PREFIX == "test":

0 commit comments

Comments
 (0)