diff --git a/apps/vben5/packages/@abp/account/src/hooks/useOAuthError.ts b/apps/vben5/packages/@abp/account/src/hooks/useOAuthError.ts index 456f76525..972f8274d 100644 --- a/apps/vben5/packages/@abp/account/src/hooks/useOAuthError.ts +++ b/apps/vben5/packages/@abp/account/src/hooks/useOAuthError.ts @@ -13,14 +13,15 @@ export function useOAuthError() { case 'Invalid username or password!': { return $t('abp.oauth.errors.invalidUserNameOrPassword'); } - // 需要二次认证 - case 'RequiresTwoFactor': { - return $t('abp.oauth.errors.requiresTwoFactor'); - } // 需要更改密码 + case 'PeriodicallyChangePassword': case 'ShouldChangePasswordOnNextLogin': { return $t('abp.oauth.errors.shouldChangePassword'); } + // 需要二次认证 + case 'RequiresTwoFactor': { + return $t('abp.oauth.errors.requiresTwoFactor'); + } // Token已失效 case 'The token is no longer valid.': { return $t('abp.oauth.errors.tokenHasExpired');