fix: allow setting username in openIdStrategy (#744)

* fixed bug in setting username from openid jwt token

* bugfix - changed , to ; at end of line
This commit is contained in:
AndrejG82 2023-08-04 20:26:14 +02:00 committed by GitHub
parent 6ee0dbfdbd
commit d79f585052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ async function setupOpenId() {
} else {
user.provider = 'openid';
user.openidId = userinfo.sub;
user.username = userinfo.given_name || '';
user.username = userinfo.username || userinfo.given_name || '';
user.name = fullName;
}