Fixed _is_email_valid method #247

This commit is contained in:
Sven Heidemann 2023-03-09 11:15:28 +01:00
parent 33279b7053
commit 16ef29999c

View File

@ -80,6 +80,9 @@ class AuthService(AuthServiceABC):
@staticmethod @staticmethod
def _is_email_valid(email: str) -> bool: def _is_email_valid(email: str) -> bool:
if email is None:
raise False
if re.fullmatch(_email_regex, email) is not None: if re.fullmatch(_email_regex, email) is not None:
return True return True