support login with 2fa

This commit is contained in:
MaysWind
2020-10-21 00:30:08 +08:00
parent 6896e1966e
commit 4e36558b43
9 changed files with 164 additions and 23 deletions
+12 -1
View File
@@ -15,7 +15,12 @@ export default {
'email already exists': 'Email already exists',
'login name is invalid': 'Login name is invalid',
'login name or password is invalid': 'Login name or password is invalid',
'login name or password is wrong': 'Login name or password is wrong'
'login name or password is wrong': 'Login name or password is wrong',
'passcode is invalid': 'Passcode is invalid',
'two factor recovery code is invalid': 'Two factor recovery code is invalid',
'two factor is not enabled': 'Two factor is not enabled',
'two factor has already been enabled': 'Two factor has already been enabled',
'two factor recovery code does not exist': 'Two factor recovery code does not exist'
},
'Done': 'Done',
'Home': 'Home',
@@ -34,6 +39,12 @@ export default {
'Please input username': 'Please input username',
'Please input password': 'Please input password',
'Unable to login': 'Unable to login',
'Two-Factor Authentication': 'Two-Factor Authentication',
'Passcode': 'Passcode',
'Verify': 'Verify',
'Please input passcode': 'Please input passcode',
'Unable to verify': 'Unable to verify',
'Use a scratch code': 'Use a scratch code',
'Language': 'Language',
'Logout': 'Logout'
};
+12 -1
View File
@@ -15,7 +15,12 @@ export default {
'email already exists': '邮箱已经存在',
'login name is invalid': '登录名无效',
'login name or password is invalid': '登录名或密码无效',
'login name or password is wrong': '登录名或密码错误'
'login name or password is wrong': '登录名或密码错误',
'passcode is invalid': '验证码无效',
'two factor recovery code is invalid': '两步验证恢复口令无效',
'two factor is not enabled': '两步验证没有启用',
'two factor has already been enabled': '两步验证已经启用',
'two factor recovery code does not exist': '两步验证恢复口令不存在'
},
'Done': '完成',
'Home': '首页',
@@ -34,6 +39,12 @@ export default {
'Please input username': '请输入用户名',
'Please input password': '请输入密码',
'Unable to login': '无法登录',
'Two-Factor Authentication': '两步验证',
'Passcode': '验证码',
'Verify': '验证',
'Please input passcode': '请输入验证码',
'Unable to verify': '无法验证',
'Use a scratch code': '使用验证口令',
'Language': '语言',
'Logout': '退出登录'
};