mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
perf: oidc支持使用第三方昵称或账号作为certd用户的用户名
This commit is contained in:
@@ -127,7 +127,7 @@ export class OidcOauthProvider extends BaseAddon implements IOauthProvider {
|
||||
},
|
||||
userInfo: {
|
||||
openId: claims.sub,
|
||||
nickName: claims.nickname || claims.preferred_username || "",
|
||||
nickName: claims.nickname || claims.name || claims.username || claims.preferred_username || "",
|
||||
avatar: claims.picture,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user