Skip to content

Commit

Permalink
feat(utils.py): remove email verification
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlacho authored Dec 10, 2024
1 parent 728c7c1 commit 43f62c9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions safety/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ def is_email_verified(info: Dict[str, Any]) -> Optional[bool]:
info (Dict[str, Any]): The user information.
Returns:
bool: True if the email is verified, False otherwise.
bool: True
"""
return info.get(CLAIM_EMAIL_VERIFIED_API) or info.get(CLAIM_EMAIL_VERIFIED_AUTH_SERVER)
# return info.get(CLAIM_EMAIL_VERIFIED_API) or info.get(
# CLAIM_EMAIL_VERIFIED_AUTH_SERVER
# )

# Always return True to avoid email verification
return True



def parse_response(func: Callable) -> Callable:
Expand Down

0 comments on commit 43f62c9

Please sign in to comment.