fix: update authentication settings retrieval and enhance redirect logic for password auth type
parent
376e25d796
commit
b6bab14d8a
|
|
@ -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) => {
|
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 {
|
export default {
|
||||||
|
|
|
||||||
|
|
@ -351,7 +351,7 @@ const newDefaultSlogan = computed(() => {
|
||||||
})
|
})
|
||||||
|
|
||||||
function redirectAuth(authType: string, needMessage: boolean = true) {
|
function redirectAuth(authType: string, needMessage: boolean = true) {
|
||||||
if (authType === 'LDAP' || authType === '') {
|
if (authType === 'LDAP' || authType === '' || authType === 'password') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
authApi.getLoginViewAuthSetting(authType, loading).then((res: any) => {
|
authApi.getLoginViewAuthSetting(authType, loading).then((res: any) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue