mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
perf: oidc支持使用第三方昵称或账号作为certd用户的用户名
This commit is contained in:
@@ -169,7 +169,7 @@ export class ConnectController extends BaseController {
|
||||
const userInfo = validationValue.userInfo;
|
||||
const oauthType = validationValue.type;
|
||||
let newUser = new UserEntity()
|
||||
newUser.username = `${oauthType}_${userInfo.nickName}_${simpleNanoId(6)}`;
|
||||
newUser.username = `${userInfo.nickName}_${simpleNanoId(6)}_${oauthType}`;
|
||||
newUser.avatar = userInfo.avatar;
|
||||
newUser.nickName = userInfo.nickName || simpleNanoId(6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user