mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 23:59:22 +00:00
fix: 修复创建用户时 先输入密码再选择来源为LDAP 密码项仍可输入未隐藏的BUG
This commit is contained in:
committed by
Jiangjie.Bai
parent
5c511345bf
commit
488684f293
@@ -55,10 +55,13 @@ export default {
|
||||
password: {
|
||||
component: UserPassword,
|
||||
hidden: (formValue) => {
|
||||
if (formValue.password_strategy === 'custom') {
|
||||
if (formValue.source !== 'local') {
|
||||
return true
|
||||
}
|
||||
if (formValue.password_strategy === 'custom' || formValue.update_password) {
|
||||
return false
|
||||
}
|
||||
return !formValue.update_password || formValue.source !== 'local'
|
||||
return true
|
||||
},
|
||||
el: {
|
||||
required: false,
|
||||
@@ -79,10 +82,13 @@ export default {
|
||||
}
|
||||
],
|
||||
hidden: (formValue) => {
|
||||
if (formValue.password_strategy === 'custom') {
|
||||
if (formValue.source !== 'local') {
|
||||
return true
|
||||
}
|
||||
if (formValue.password_strategy === 'custom' || formValue.update_password || this.user.can_public_key_auth) {
|
||||
return false
|
||||
}
|
||||
return !formValue.update_password || !this.user.can_public_key_auth
|
||||
return true
|
||||
}
|
||||
},
|
||||
set_public_key: {
|
||||
|
Reference in New Issue
Block a user