Email verification code (#1382)

* Base verification code implementation, must define command, manager, events
* VerificationManager, verification command and messages, handled some sensible commands, configuration values
* Improved manager and sensible commands trigger
* Updated messages
* Updated verification code manager, fixed tests
* Switched to a permission based command
* Verification manager and command improved and added tests
* Edited messages
This commit is contained in:
HexelDev
2017-10-28 12:23:14 +02:00
committed by ljacqu
parent 8422581a82
commit ba65633182
58 changed files with 1227 additions and 67 deletions
@@ -99,6 +99,15 @@ usage_captcha: '&8[&6用戶系統&8] &f用法:《 /captcha <theCaptcha> 》'
wrong_captcha: '&8[&6用戶系統&8] &c你所輸入的驗證碼無效,請使用 《 /captcha THE_CAPTCHA 》 再次輸入。'
valid_captcha: '&8[&6用戶系統&8] &c你所輸入的驗證碼無效 '
# Verification code
# TODO verification_code_required: '&3This command is sensitive and requires an email verification! Check your inbox and follow the email''s instructions.'
# TODO usage_verification_code: '&cUsage: /verification <code>'
# TODO incorrect_verification_code: '&cIncorrect code, please type "/verification <code>" into the chat, using the code you received by email'
# TODO verification_code_verified: '&2Your identity has been verified! You can now execute all commands within the current session!'
# TODO verification_code_already_verified: '&2You can already execute every sensitive command within the current session!'
# TODO verification_code_expired: '&3Your code has expired! Execute an other sensitive command to get a new code!'
# TODO verification_code_email_needed: '&3To verify your identity you need to link an email address with your account!!'
# Time units
second: '秒'
seconds: '秒'