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
@@ -96,6 +96,15 @@ usage_captcha: '&3T要登錄您必須使用captcha驗證碼,請使用命令: "/c
wrong_captcha: '&c驗證碼錯誤!請按T在聊天中輸入 "/captcha THE_CAPTCHA"'
valid_captcha: '&2驗證碼正確!'
# 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
# TODO second: 'second'
# TODO seconds: 'seconds'