fix: update authentication settings retrieval and enhance redirect logic for password auth type

This commit is contained in:
wxg0103 2025-09-18 13:26:56 +08:00
parent 376e25d796
commit b6bab14d8a
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ const getLoginAuthSetting: (loading?: Ref<boolean>) => Promise<Result<any>> = (l
*
*/
const getLoginViewAuthSetting: (auth_type: string, loading?: Ref<boolean>) => Promise<Result<any>> = (auth_type, loading) => {
return get(`login/${prefix}/${auth_type}/detail`, undefined, loading)
return get(`login${prefix}/${auth_type}/detail`, undefined, loading)
}
export default {

View File

@ -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) => {