mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-22 08:08:39 +00:00
feat: 管理员可以设置用户是否下次登录需修改密码 (#758)
* feat: 管理员可以设置用户是否下次登录需修改密码 * feat: 管理员可以设置用户下次是否需要更改密码,本次修改:字段命名规范化 * fix: 用户是否需要更改密码,变量名称规范化 * fix: 管理员可设置用户下次登录是否需要改密,字段名称更改
This commit is contained in:
committed by
GitHub
parent
9de8d622e4
commit
1cc69e4203
@@ -28,7 +28,7 @@ export default {
|
||||
[this.$t('users.Account'), ['name', 'username', 'email', 'groups']],
|
||||
[this.$t('users.Authentication'), [
|
||||
'password_strategy', 'update_password', 'password', 'set_public_key',
|
||||
'public_key', 'mfa_level', 'source'
|
||||
'public_key', 'mfa_level', 'source', 'need_update_password'
|
||||
]],
|
||||
[this.$t('users.Secure'), ['role', 'org_roles', 'date_expired']],
|
||||
[this.$t('common.Other'), ['phone', 'wechat', 'comment']]
|
||||
@@ -46,6 +46,13 @@ export default {
|
||||
rules.Required
|
||||
]
|
||||
},
|
||||
need_update_password: {
|
||||
label: this.$t('users.isUpdatePassword'),
|
||||
type: 'checkbox',
|
||||
hidden: (formValue) => {
|
||||
return formValue.source !== 'local'
|
||||
}
|
||||
},
|
||||
update_password: {
|
||||
label: this.$t('users.UpdatePassword'),
|
||||
type: 'checkbox',
|
||||
|
Reference in New Issue
Block a user