mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
feat: 管理员可以设置用户是否下次登录需修改密码 (#758)
* feat: 管理员可以设置用户是否下次登录需修改密码 * feat: 管理员可以设置用户下次是否需要更改密码,本次修改:字段命名规范化 * fix: 用户是否需要更改密码,变量名称规范化 * fix: 管理员可设置用户下次登录是否需要改密,字段名称更改
This commit is contained in:
committed by
GitHub
parent
9de8d622e4
commit
1cc69e4203
@@ -1000,6 +1000,7 @@
|
||||
"remoteAppPermissionRules": "远程应用授权规则"
|
||||
},
|
||||
"dateLastLogin": "最后登录日期",
|
||||
"isUpdatePassword": "是否强制用户更新密码",
|
||||
"UpdatePassword": "更新密码",
|
||||
"SetPublicKey": "设置SSH公钥",
|
||||
"passwordExpired": "密码过期了",
|
||||
|
||||
@@ -995,6 +995,7 @@
|
||||
"ApplicationPermissionRules": "Application permission rules",
|
||||
"remoteAppPermissionRules": "Remote app permission rules"
|
||||
},
|
||||
"isUpdatePassword": "Whether to force users to update their passwords",
|
||||
"UpdatePassword": "",
|
||||
"UpdatePublicKey": "",
|
||||
"passwordExpired": "Password expired",
|
||||
|
||||
@@ -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