mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 09:07:02 +02:00
Fix verification type
This commit is contained in:
parent
5cba82b343
commit
3e7f143a1e
5 changed files with 53 additions and 15 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()
|
||||
login(request, user)
|
||||
logger.info("Successfully logged in user %s" % user)
|
||||
|
||||
# Clear the flag if the exception is not caught
|
||||
request.session.pop("redirect_attempted", None)
|
||||
return redirect(request.session.get("next", "/"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue