mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed Docker image entrypoint.sh email validation. #8410
Introduces a GLOBALLY_DELIVERABLE variable so that it can be passed to the email validator library and ultimately allowing the email admin@localhost to be valid, as long as False is passed in. Also: * Adjusted the indentation of a command above it in the entrypoint.sh * Added printing out the output of the validation library so that we can better find what the actual issue is
This commit is contained in:
@@ -21,6 +21,8 @@ def validate_email(email, email_config=None):
|
||||
config.CHECK_EMAIL_DELIVERABILITY
|
||||
email_config['ALLOW_SPECIAL_EMAIL_DOMAINS'] = \
|
||||
config.ALLOW_SPECIAL_EMAIL_DOMAINS
|
||||
email_config["GLOBALLY_DELIVERABLE"] = \
|
||||
config.GLOBALLY_DELIVERABLE
|
||||
|
||||
# Allow special email domains
|
||||
if isinstance(email_config['ALLOW_SPECIAL_EMAIL_DOMAINS'], str):
|
||||
@@ -35,6 +37,9 @@ def validate_email(email, email_config=None):
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
email_validator.GLOBALLY_DELIVERABLE = \
|
||||
email_config["GLOBALLY_DELIVERABLE"]
|
||||
|
||||
# Validate.
|
||||
_ = email_validate(
|
||||
email,
|
||||
|
Reference in New Issue
Block a user