mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 00:57:02 +02:00
Fix logic
This commit is contained in:
parent
3e7f143a1e
commit
a047380b59
2 changed files with 9 additions and 16 deletions
|
@ -99,8 +99,11 @@ def login_callback(request):
|
|||
return CLIENT.create_authn_request(request.session)
|
||||
user = authenticate(request=request, **userinfo)
|
||||
if user:
|
||||
# Set the verification type
|
||||
user.set_user_verification_type()
|
||||
# Set the verification type if it doesn't already exist
|
||||
if not user.verification_type:
|
||||
user.set_user_verification_type()
|
||||
user.save()
|
||||
|
||||
login(request, user)
|
||||
logger.info("Successfully logged in user %s" % user)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue