fix(ui):401 redirect && feat(ui):add auth ldap test (#315)

This commit is contained in:
wang-liang0615
2023-12-18 16:30:02 +08:00
committed by GitHub
parent 6e9ce08e2c
commit 76c939fe5c
4 changed files with 108 additions and 14 deletions

View File

@@ -29,3 +29,12 @@ export function getAuthDataEnable() {
method: 'get',
})
}
export function testLDAP(test_type, data) {
return axios({
url: `/common-setting/v1/auth_config/LDAP/test?test_type=${test_type}`,
method: 'post',
data,
})
}