mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
updated logic in oidc backend authenticate to not override with blank first_name/last_name
This commit is contained in:
parent
270e910520
commit
fd19726a30
2 changed files with 14 additions and 5 deletions
|
@ -83,9 +83,7 @@ def login_callback(request):
|
|||
user_in_db = User.objects.get(username=userinfo["sub"])
|
||||
|
||||
if user_in_db:
|
||||
logger.info(f"This user exists in the DB (before authenticate): {user_in_db.first_name}")
|
||||
userinfo["given_name"] = user_in_db.first_name
|
||||
userinfo["family_name"] = user_in_db.last_name
|
||||
logger.info(f"This user exists in the DB (before authenticate): {user_in_db.first_name} {user_in_db.last_name}")
|
||||
except:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue