mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
fix: 修改用户创建/更新密码策略选项值
This commit is contained in:
@@ -59,7 +59,7 @@ export default {
|
||||
password: {
|
||||
component: UserPassword,
|
||||
hidden: (formValue) => {
|
||||
if (formValue.password_strategy) {
|
||||
if (formValue.password_strategy === 'custom') {
|
||||
return false
|
||||
}
|
||||
return !formValue.update_password
|
||||
@@ -81,7 +81,7 @@ export default {
|
||||
}
|
||||
],
|
||||
hidden: (formValue) => {
|
||||
if (formValue.password_strategy) {
|
||||
if (formValue.password_strategy === 'custom') {
|
||||
return false
|
||||
}
|
||||
return !formValue.update_password || !this.user.can_public_key_auth
|
||||
@@ -148,7 +148,7 @@ export default {
|
||||
methods: {
|
||||
cleanFormValue(value) {
|
||||
const method = this.getMethod()
|
||||
if (method === 'post' && !value.password_strategy) {
|
||||
if (method === 'post' && value.password_strategy === 'email') {
|
||||
delete value['password']
|
||||
if (this.currentOrgIsRoot) {
|
||||
delete value['groups']
|
||||
|
||||
Reference in New Issue
Block a user