- Introduce /email code

- Add max tries for /email code
- Introduce a PasswordRecoveryService
This commit is contained in:
EbonJaguar
2017-03-06 13:54:46 -05:00
parent a64f758ee9
commit 7d4bfcd99d
40 changed files with 529 additions and 240 deletions
@@ -45,7 +45,9 @@ accounts_owned_self: '您拥有 %count 个账户:'
accounts_owned_other: '玩家 %name 拥有 %count 个账户:'
two_factor_create: '&8[&6玩家系统&8] &2你的代码是 %code,你可以使用 %url 来扫描'
recovery_code_sent: '一个用于重置您的密码的验证码已发到您的邮箱'
# TODO: Missing tags %count
recovery_code_incorrect: '验证码不正确! 使用 /email recovery [email] 以生成新的验证码'
# TODO recovery_tries_exceeded: 'You have exceeded the maximum number attempts to enter the recovery code. Use "/email recovery [email]" to generate a new one.'
vb_nonActiv: '&8[&6玩家系统&8] &f你的帐号还未激活,请查看你的邮箱!'
usage_unreg: '&8[&6玩家系统&8] &c正确用法:“/unregister <密码>”'
pwd_changed: '&8[&6玩家系统&8] &c密码已成功修改!'