#930 Create registration captcha manager

- Introduce registration captcha manager, rename login captcha manager accordingly
- Integrate reg. captcha manager into /register command

Open points:
- Refactor common captcha functionality into abstract superclass
- If captcha before /register necessary, show appropriate message to player immediately
- Unit tests
This commit is contained in:
ljacqu
2017-12-01 21:12:35 +01:00
parent 67a6a42dfe
commit 33904c09e9
11 changed files with 220 additions and 69 deletions
@@ -134,6 +134,9 @@ public enum MessageKey {
/** Captcha code solved correctly! */
CAPTCHA_SUCCESS("valid_captcha"),
/** To register you have to solve a captcha code first, please use the command: /captcha <theCaptcha> */
CAPTCHA_FOR_REGISTRATION_REQUIRED("captcha_for_registration", "<theCaptcha>"),
/** A VIP player has joined the server when it was full! */
KICK_FOR_VIP("kick_forvip"),