From 43f62c9fc206e1ffa4dd7a05110c4e8615d2e1d6 Mon Sep 17 00:00:00 2001 From: David Lacho Date: Tue, 10 Dec 2024 15:24:46 -0500 Subject: [PATCH] feat(utils.py): remove email verification --- safety/auth/utils.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/safety/auth/utils.py b/safety/auth/utils.py index 4d42ddba..604b496e 100644 --- a/safety/auth/utils.py +++ b/safety/auth/utils.py @@ -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: