From b6bab14d8ad8b0afcbbb875f69e7b4acc940e4d5 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 18 Sep 2025 13:26:56 +0800 Subject: [PATCH] fix: update authentication settings retrieval and enhance redirect logic for password auth type --- ui/src/api/system-settings/auth-setting.ts | 2 +- ui/src/views/login/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/api/system-settings/auth-setting.ts b/ui/src/api/system-settings/auth-setting.ts index b8be07daf..5d047902a 100644 --- a/ui/src/api/system-settings/auth-setting.ts +++ b/ui/src/api/system-settings/auth-setting.ts @@ -54,7 +54,7 @@ const getLoginAuthSetting: (loading?: Ref) => Promise> = (l * 获取认证设置 */ const getLoginViewAuthSetting: (auth_type: string, loading?: Ref) => Promise> = (auth_type, loading) => { - return get(`login/${prefix}/${auth_type}/detail`, undefined, loading) + return get(`login${prefix}/${auth_type}/detail`, undefined, loading) } export default { diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index d8e366df7..eca9879dd 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -351,7 +351,7 @@ const newDefaultSlogan = computed(() => { }) function redirectAuth(authType: string, needMessage: boolean = true) { - if (authType === 'LDAP' || authType === '') { + if (authType === 'LDAP' || authType === '' || authType === 'password') { return } authApi.getLoginViewAuthSetting(authType, loading).then((res: any) => {