Fixed _is_email_valid method #247
This commit is contained in:
parent
33279b7053
commit
16ef29999c
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user