mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-12 18:44:25 +08:00
feat: 添加 TOTP 2FA 功能
This commit is contained in:
@@ -74,6 +74,15 @@ export default {
|
||||
forgotPassword: '忘记密码',
|
||||
forgotPasswordHint:
|
||||
'忘记密码?在运行本服务的设备上打开终端,执行 one-kvm user set-password,按提示输入并确认新密码即可重置。',
|
||||
totpPrompt: '请输入认证器应用中的验证码',
|
||||
totpCode: '认证器验证码',
|
||||
totpCodePlaceholder: '6 位验证码',
|
||||
enterTotpCode: '请输入 6 位认证器验证码',
|
||||
invalidTotpCode: '认证器验证码错误',
|
||||
totpChallengeExpired: '本次登录验证已过期,请重新输入密码。',
|
||||
totpRateLimited: '错误次数过多,请等待一分钟后重新登录。',
|
||||
verifyAndLogin: '验证并登录',
|
||||
backToPassword: '返回密码登录',
|
||||
},
|
||||
status: {
|
||||
connected: '已连接',
|
||||
@@ -468,6 +477,29 @@ export default {
|
||||
newPassword: '新密码',
|
||||
usernameDesc: '修改控制台登录用户名',
|
||||
passwordDesc: '修改控制台登录密码',
|
||||
totp: {
|
||||
title: '双重身份验证',
|
||||
description: '登录 Web 控制台时要求输入认证器验证码',
|
||||
serverTime: '服务器时间',
|
||||
localTime: '本地时间',
|
||||
clockOffset: '时钟偏差:{seconds} 秒',
|
||||
clockDriftWarning: '服务器与当前设备的时间相差至少 30 秒,校准时钟前验证码可能无法通过。',
|
||||
enable: '启用 2FA',
|
||||
disable: '关闭 2FA',
|
||||
enableTitle: '设置双重身份验证',
|
||||
disableTitle: '关闭双重身份验证',
|
||||
manualSecret: '手动设置密钥',
|
||||
secretOneTime: '此密钥仅在设置期间显示,请立即添加到认证器。',
|
||||
enterSixDigitCode: '请输入 6 位认证器验证码',
|
||||
currentPasswordIncorrect: '当前密码错误',
|
||||
invalidCode: '认证器验证码错误',
|
||||
enrollmentExpired: '设置已过期,请重新输入密码开始。',
|
||||
rateLimited: '错误次数过多,请等待一分钟后重试。',
|
||||
alreadyEnabled: '双重身份验证已经启用',
|
||||
notEnabled: '双重身份验证尚未启用',
|
||||
operationFailed: '无法更新双重身份验证',
|
||||
loadFailed: '无法加载双重身份验证状态',
|
||||
},
|
||||
httpPort: 'HTTP 端口',
|
||||
httpsPort: 'HTTPS 端口',
|
||||
bindAddress: '绑定地址',
|
||||
|
||||
Reference in New Issue
Block a user