mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-22 08:08:39 +00:00
fix: 修复删除source
字段引起的无法更新密码的问题 (#534)
Co-authored-by: Orange <orangemtony@gmail.com>
This commit is contained in:
@@ -22,14 +22,14 @@ export default {
|
||||
initial: {
|
||||
password_strategy: 0,
|
||||
mfa_level: 0,
|
||||
source: 'local',
|
||||
role: 'User',
|
||||
source: 'local',
|
||||
org_roles: ['User'],
|
||||
date_expired: getDayFuture(36500, new Date()).toISOString()
|
||||
},
|
||||
fields: [
|
||||
[this.$t('users.Account'), ['name', 'username', 'email', 'groups']],
|
||||
[this.$t('users.Authentication'), ['password_strategy', 'update_password', 'password', 'set_public_key', 'public_key', 'mfa_level']],
|
||||
[this.$t('users.Authentication'), ['password_strategy', 'update_password', 'password', 'set_public_key', 'public_key', 'mfa_level', 'source']],
|
||||
[this.$t('users.Secure'), ['role', 'org_roles', 'date_expired']],
|
||||
[this.$t('common.Other'), ['phone', 'wechat', 'comment']]
|
||||
],
|
||||
@@ -50,6 +50,9 @@ export default {
|
||||
return this.$route.meta.action !== 'update' || formValue.source !== 'local'
|
||||
}
|
||||
},
|
||||
source: {
|
||||
hidden: () => { return true }
|
||||
},
|
||||
password: {
|
||||
component: UserPassword,
|
||||
hidden: (formValue) => {
|
||||
|
Reference in New Issue
Block a user