#1141 Fixes to TOTP implementation
- Revert back to SHA1 as HMAC hash function so that it works with Google authenticator - Add message to user to tell him to run /2fa confirm to add a TOTP code
This commit is contained in:
@@ -60,7 +60,6 @@ misc:
|
||||
logout: '&2已成功註銷!'
|
||||
reload: '&2伺服器已正確地被重新加載配置和數據庫!'
|
||||
usage_change_password: '&c使用方法: "/changepassword [舊密碼] [新密碼]"'
|
||||
two_factor_create: '&2您的密碼是 %code。您可以從這裡掃描 %url'
|
||||
accounts_owned_self: '您擁有 %count 個帳戶:'
|
||||
accounts_owned_other: '玩家 %name 擁有 %count 個帳戶:'
|
||||
|
||||
@@ -90,8 +89,10 @@ email:
|
||||
old_email_invalid: '&c舊電子郵件地址無效,請重試!'
|
||||
invalid: '&c電子郵件地址無效,請重試!'
|
||||
added: '&2電子郵件地址已成功添加到您的帳戶!'
|
||||
# TODO add_not_allowed: '&cAdding email was not allowed'
|
||||
request_confirmation: '&c請確認你的電郵地址!'
|
||||
changed: '&2已正確地更改電子郵件地址!'
|
||||
# TODO change_not_allowed: '&cChanging email was not allowed'
|
||||
# TODO email_show: '&2Your current email address is: &f%email'
|
||||
# TODO no_email_for_account: '&2You currently don''t have email address associated with this account.'
|
||||
already_used: '&4此電子郵件地址已被使用'
|
||||
@@ -99,8 +100,6 @@ email:
|
||||
# TODO send_failure: 'The email could not be sent. Please contact an administrator.'
|
||||
# TODO change_password_expired: 'You cannot change your password using this command anymore.'
|
||||
# TODO email_cooldown_error: '&cAn email was already sent recently. You must wait %time before you can send a new one.'
|
||||
# TODO add_not_allowed: '&cAdding email was not allowed'
|
||||
# TODO change_not_allowed: '&cChanging email was not allowed'
|
||||
|
||||
# Password recovery by email
|
||||
recovery:
|
||||
@@ -142,3 +141,16 @@ time:
|
||||
# TODO hours: 'hours'
|
||||
# TODO day: 'day'
|
||||
# TODO days: 'days'
|
||||
|
||||
# Two-factor authentication
|
||||
two_factor:
|
||||
code_created: '&2您的密碼是 %code。您可以從這裡掃描 %url'
|
||||
# TODO confirmation_required: 'Please confirm your code with /2fa confirm <code>'
|
||||
# TODO code_required: 'Please submit your two-factor authentication code with /2fa code <code>'
|
||||
# TODO already_enabled: 'Two-factor authentication is already enabled for your account!'
|
||||
# TODO enable_error_no_code: 'No 2fa key has been generated for you or it has expired. Please run /2fa add'
|
||||
# TODO enable_success: 'Successfully enabled two-factor authentication for your account'
|
||||
# TODO enable_error_wrong_code: 'Wrong code or code has expired. Please run /2fa add'
|
||||
# TODO not_enabled_error: 'Two-factor authentication is not enabled for your account. Run /2fa add'
|
||||
# TODO removed_success: 'Successfully removed two-factor auth from your account'
|
||||
# TODO invalid_code: 'Invalid code!'
|
||||
|
||||
Reference in New Issue
Block a user