mirror of
https://github.com/veops/oneterm.git
synced 2026-09-02 22:56:21 +08:00
fix(ui): disable password encryption during LDAP login
This commit is contained in:
@@ -170,8 +170,9 @@ export default {
|
||||
const loginParams = { ...values }
|
||||
delete loginParams.username
|
||||
loginParams.username = values.username
|
||||
loginParams.password = appConfig.useEncryption ? md5(values.password) : values.password
|
||||
|
||||
loginParams.auth_with_ldap = hasLDAP ? Number(auth_with_ldap) : undefined
|
||||
loginParams.password = (appConfig.useEncryption && !loginParams.auth_with_ldap) ? md5(values.password) : values.password
|
||||
|
||||
localStorage.setItem('ops_auth_type', '')
|
||||
Login({ userInfo: loginParams })
|
||||
|
||||
Reference in New Issue
Block a user