simplify view oidc
This commit is contained in:
parent
64cd67096c
commit
dab7d30a17
|
@ -174,11 +174,7 @@ class VerifyView(View):
|
||||||
"""
|
"""
|
||||||
Send a email when a user is activated.
|
Send a email when a user is activated.
|
||||||
"""
|
"""
|
||||||
verification = self.vp_token.get_result_verify()
|
if not self.vp_token.result_verify:
|
||||||
if not verification:
|
|
||||||
return
|
|
||||||
|
|
||||||
if verification.get('errors') or verification.get('warnings'):
|
|
||||||
return
|
return
|
||||||
|
|
||||||
email = self.get_email(user)
|
email = self.get_email(user)
|
||||||
|
|
Loading…
Reference in New Issue