mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
- Try to fix OAuth2: Change oidc username to preferred_username.
Thanks to xet7 !
This commit is contained in:
parent
b21a0caa4f
commit
734e4e5f3f
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ if (Meteor.isServer) {
|
|||
if (user.services.oidc) {
|
||||
const email = user.services.oidc.email.toLowerCase();
|
||||
|
||||
user.username = user.services.oidc.username;
|
||||
user.username = user.services.oidc.preferred_username;
|
||||
user.emails = [{ address: email, verified: true }];
|
||||
const initials = user.services.oidc.fullname.match(/\b[a-zA-Z]/g).join('').toUpperCase();
|
||||
user.profile = { initials, fullname: user.services.oidc.fullname };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue