diff --git a/src/i18n/langs/en.json b/src/i18n/langs/en.json index 4474093d3..7a65c8a38 100644 --- a/src/i18n/langs/en.json +++ b/src/i18n/langs/en.json @@ -314,6 +314,7 @@ "Delete": "Delete", "Disable": "Disable", "Download": "Download", + "Copy": "Copy", "Enable": "Enable", "On/Off": "On/Off", "EnterForSearch": "Press enter to search", @@ -417,6 +418,7 @@ }, "isValid": "Is valid", "nav": { + "TempPassword": "Temporary password", "APIKey": "API Key", "Workbench": "Workbench", "Navigation": "Navigation", @@ -988,6 +990,7 @@ "LDAPUser": "LDAP User", "InsecureCommandAlert": "Insecure command alert", "helpText": { + "TempPassword": "For a while, there is a period of 300 seconds, and there is a period of reuse.", "ApiKeyList": "The API key is used to sign the request header. The header of each request is different. Please refer to the usage documentation", "authLdapSearchFilter": "Choice may be (cn|uid|sAMAccountName)=%(user)s)", "authLdapSearchOu": "Use | split User OUs", diff --git a/src/i18n/langs/ja.json b/src/i18n/langs/ja.json index 43b7977a0..e7ab41908 100644 --- a/src/i18n/langs/ja.json +++ b/src/i18n/langs/ja.json @@ -326,6 +326,7 @@ "Delete": "削除", "Disable": "無効", "Download": "ダウンロード", + "Copy": "コピー", "Enable": "有効化", "On/Off": "起動/停止", "EnterForSearch": "Enterキーを押して検索します", @@ -429,6 +430,7 @@ "fileType": "ファイルタイプ", "isValid": "有効", "nav": { + "TempPassword": "いちじパスワード", "APIKey": "APIキー", "Workbench": "作業台", "Navigation": "ナビゲーション", @@ -1014,6 +1016,7 @@ "LDAPServerInfo": "LDAPサーバー", "LDAPUser": "LDAPユーザー", "helpText": { + "TempPassword": "一時パスワードの有効期間は300秒で、有効期間内に再利用できます。", "ApiKeyList": "Api keyを使用してリクエストヘッダに署名します。リクエストのヘッダごとに異なります。使用ドキュメントを参照してください", "authLdapSearchFilter": "可能なオプションは (cnまたはuidまたはsamaccount tname = %(user)s) です", "authLdapSearchOu": "| を使用して各OUを区切る", diff --git a/src/i18n/langs/zh.json b/src/i18n/langs/zh.json index 329f905df..d10c496e9 100644 --- a/src/i18n/langs/zh.json +++ b/src/i18n/langs/zh.json @@ -327,6 +327,7 @@ "Delete": "删除", "Disable": "禁用", "Download": "下载", + "Copy": "复制", "Enable": "启用", "On/Off": "启/停", "EnterForSearch": "按回车进行搜索", @@ -430,6 +431,7 @@ "fileType": "文件类型", "isValid": "有效", "nav": { + "TempPassword": "临时密码", "APIKey": "API Key", "Workbench": "工作台", "Navigation": "导航", @@ -1015,6 +1017,7 @@ "LDAPServerInfo": "LDAP 服务器", "LDAPUser": "LDAP 用户", "helpText": { + "TempPassword": "临时密码有效期为 300 秒,有效期内可重复使用", "ApiKeyList": "使用api key签名请求头,每个请求的头部是不一样的, 请查阅使用文档", "authLdapSearchFilter": "可能的选项是(cn或uid或sAMAccountName=%(user)s)", "authLdapSearchOu": "使用|分隔各OU", diff --git a/src/layout/components/NavHeader/AccountDropdown.vue b/src/layout/components/NavHeader/AccountDropdown.vue index 10a85b239..8198ffff6 100644 --- a/src/layout/components/NavHeader/AccountDropdown.vue +++ b/src/layout/components/NavHeader/AccountDropdown.vue @@ -9,6 +9,7 @@ {{ $t('common.nav.Profile') }} {{ $t('common.nav.APIKey') }} + {{ $t('common.nav.TempPassword') }} {{ $t('common.nav.Logout') }} @@ -50,6 +51,8 @@ export default { case 'apiKey': this.$router.push('/profile/key') break + case 'tempPassword': + this.$router.push('/profile/tempPassword') } }, logout() { diff --git a/src/router/profile/index.js b/src/router/profile/index.js index 208fded28..f3f8957d5 100644 --- a/src/router/profile/index.js +++ b/src/router/profile/index.js @@ -53,6 +53,16 @@ export default { resource: 'accesskey', app: 'authentication' } + }, + { + path: '/profile/tempPassword', + component: () => import('@/views/profile/TempPassword'), + name: 'TempPassword', + meta: { + title: i18n.t('common.nav.TempPassword'), + icon: 'magic', + permissions: [] + } } ] } diff --git a/src/views/profile/TempPassword.vue b/src/views/profile/TempPassword.vue new file mode 100644 index 000000000..e91813ba4 --- /dev/null +++ b/src/views/profile/TempPassword.vue @@ -0,0 +1,93 @@ + + + + +