diff --git a/mo/users.py b/mo/users.py index bbfedf7f79469253d0576da0c69b93f68e1b4efe..bc5494b4754ce8d9e9ae075cf0e162fa5b7e07c5 100644 --- a/mo/users.py +++ b/mo/users.py @@ -294,7 +294,7 @@ def email_check_domain(domain: str): def normalize_email(addr: str, check_existence: bool = False, make_unique_nomail: bool = False) -> str: - if make_unique_nomail and addr.endswith('@nomail'): + if make_unique_nomail and addr == '@nomail': addr = base64.b32encode(secrets.token_bytes(10)).decode('US-ASCII').lower() + '@nomail' if '@' not in addr: