Skip to content

Commit b6bab14

Browse files
committed
fix: update authentication settings retrieval and enhance redirect logic for password auth type
1 parent 376e25d commit b6bab14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ui/src/api/system-settings/auth-setting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const getLoginAuthSetting: (loading?: Ref<boolean>) => Promise<Result<any>> = (l
5454
* 获取认证设置
5555
*/
5656
const getLoginViewAuthSetting: (auth_type: string, loading?: Ref<boolean>) => Promise<Result<any>> = (auth_type, loading) => {
57-
return get(`login/${prefix}/${auth_type}/detail`, undefined, loading)
57+
return get(`login${prefix}/${auth_type}/detail`, undefined, loading)
5858
}
5959

6060
export default {

ui/src/views/login/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ const newDefaultSlogan = computed(() => {
351351
})
352352
353353
function redirectAuth(authType: string, needMessage: boolean = true) {
354-
if (authType === 'LDAP' || authType === '') {
354+
if (authType === 'LDAP' || authType === '' || authType === 'password') {
355355
return
356356
}
357357
authApi.getLoginViewAuthSetting(authType, loading).then((res: any) => {

0 commit comments

Comments
 (0)