simplify view oidc

This commit is contained in:
Cayo Puigdefabregas 2024-06-06 13:46:59 +02:00
parent 64cd67096c
commit dab7d30a17
1 changed files with 1 additions and 5 deletions

View File

@ -174,11 +174,7 @@ class VerifyView(View):
"""
Send a email when a user is activated.
"""
verification = self.vp_token.get_result_verify()
if not verification:
return
if verification.get('errors') or verification.get('warnings'):
if not self.vp_token.result_verify:
return
email = self.get_email(user)