mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-21 01:08:38 +00:00
refactor: Update OIDC status check to use oidc_enabled flag
This commit is contained in:
@@ -662,10 +662,10 @@ const PersonalSetting = () => {
|
||||
}}
|
||||
disabled={
|
||||
(userState.user && userState.user.oidc_id !== '') ||
|
||||
!status.oidc
|
||||
!status.oidc_enabled
|
||||
}
|
||||
>
|
||||
{status.oidc ? t('绑定') : t('未启用')}
|
||||
{status.oidc_enabled ? t('绑定') : t('未启用')}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user