mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
Fix for 500 error at /api/v1/me.
This commit is contained in:
parent
84e89ab6f8
commit
32604f1338
@ -51,6 +51,7 @@ class SocialAuthMiddleware(SocialAuthExceptionMiddleware):
|
||||
logout(request)
|
||||
elif auth_token and request.user != auth_token.user:
|
||||
logout(request)
|
||||
auth_token.user.backend = ''
|
||||
login(request, auth_token.user)
|
||||
auth_token.refresh()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user