mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-29 21:28:52 +00:00
perf: has_secret_key
This commit is contained in:
@@ -1714,6 +1714,7 @@
|
||||
"UpdateNodeAssetHardwareInfo": "Update node asset hardware information"
|
||||
},
|
||||
"users": {
|
||||
"Set": "Set",
|
||||
"Login": "Users login",
|
||||
"InviteSuccess": "Invite success",
|
||||
"FileEncryptionPassword": "File encryption password",
|
||||
@@ -2100,4 +2101,4 @@
|
||||
"PublishStatus": "Publish status",
|
||||
"NoPublished": "Unpublished"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1706,6 +1706,7 @@
|
||||
"UpdateNodeAssetHardwareInfo": "ノード資産ハードウェア情報の更新"
|
||||
},
|
||||
"users": {
|
||||
"Set": "設定",
|
||||
"Login": "ユーザー登録",
|
||||
"InviteSuccess": "成功招待",
|
||||
"FileEncryptionPassword": "ファイル暗号化パスワード",
|
||||
@@ -2092,4 +2093,4 @@
|
||||
"PublishStatus": "投稿ステータス",
|
||||
"NoPublished": "未発表"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1697,6 +1697,7 @@
|
||||
"UpdateNodeAssetHardwareInfo": "更新节点资产硬件信息"
|
||||
},
|
||||
"users": {
|
||||
"Set": "已设置",
|
||||
"Login": "用户登录",
|
||||
"InviteSuccess": "邀请成功",
|
||||
"FileEncryptionPassword": "文件加密密码",
|
||||
|
||||
@@ -31,8 +31,13 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
url: '/api/v1/users/profile/secret-key/',
|
||||
fields: ['new_secret_key', 'new_secret_key_again'],
|
||||
fields: ['has_secret_key', 'new_secret_key', 'new_secret_key_again'],
|
||||
fieldsMeta: {
|
||||
has_secret_key: {
|
||||
label: this.$t('users.Set'),
|
||||
type: 'switch',
|
||||
disabled: true
|
||||
},
|
||||
new_secret_key: {
|
||||
label: this.$t('users.NewPassword'),
|
||||
el: {
|
||||
@@ -55,6 +60,7 @@ export default {
|
||||
onPerformSuccess() {
|
||||
this.$refs.GenericCreateUpdateForm.$refs.form.$refs.dataForm.resetForm('form')
|
||||
this.$message.success(this.$tc('common.updateSuccessMsg'))
|
||||
this.$store.commit('common/reload')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user