mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: update authentication settings retrieval and enhance redirect logic for password auth type
This commit is contained in:
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) => {
|
||||
return get(`login/${prefix}/${auth_type}/detail`, undefined, loading)
|
||||
return get(`login${prefix}/${auth_type}/detail`, undefined, loading)
|
||||
}
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue