mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
fix: move displayName into auth integrations
This commit is contained in:
@@ -131,7 +131,7 @@ export async function findOrCreateOIDCUser(
|
||||
name,
|
||||
nickname,
|
||||
}: OIDCIDToken = validate(
|
||||
tenant.auth.displayNameEnable
|
||||
tenant.auth.integrations.oidc!.displayNameEnable
|
||||
? OIDCDisplayNameIDTokenSchema
|
||||
: OIDCIDTokenSchema,
|
||||
token
|
||||
|
||||
@@ -57,7 +57,7 @@ export async function findOrCreateSSOUser(
|
||||
|
||||
// Unpack/validate the token content.
|
||||
const { id, email, username, displayName, avatar }: SSOUserProfile = validate(
|
||||
tenant.auth.displayNameEnable
|
||||
tenant.auth.integrations.sso!.displayNameEnable
|
||||
? SSODisplayNameUserProfileSchema
|
||||
: SSOUserProfileSchema,
|
||||
token.user
|
||||
|
||||
Reference in New Issue
Block a user