Skip to content

Commit b19ba14

Browse files
authored
Update disposable email check
Ensures that we are only invalidating emails from `dispostable.com`. Without this change, emails from domains like `not-so-dispostable.com` would be blocked.
1 parent c365481 commit b19ba14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openlibrary/plugins/upstream/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def find_ia_account(email=None):
4444
)
4545
email_not_disposable = Validator(
4646
_("Disposable email not permitted"),
47-
lambda email: not email.lower().endswith('dispostable.com'),
47+
lambda email: not email.lower().endswith('@dispostable.com'),
4848
)
4949
email_domain_not_blocked = Validator(
5050
_("Your email provider is not recognized."),

0 commit comments

Comments
 (0)