Skip to content

Commit 011284d

Browse files
committed
fix(ui): disable password encryption during LDAP login
1 parent 8224b29 commit 011284d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmdb-ui/src/views/user/Login.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ export default {
170170
const loginParams = { ...values }
171171
delete loginParams.username
172172
loginParams.username = values.username
173-
loginParams.password = appConfig.useEncryption ? md5(values.password) : values.password
173+
174174
loginParams.auth_with_ldap = hasLDAP ? Number(auth_with_ldap) : undefined
175+
loginParams.password = (appConfig.useEncryption && !loginParams.auth_with_ldap) ? md5(values.password) : values.password
175176
176177
localStorage.setItem('ops_auth_type', '')
177178
Login({ userInfo: loginParams })

0 commit comments

Comments
 (0)