|
|
@ -66,11 +66,12 @@ public class RegistrationController { |
|
|
|
logger.debug("Captcha text from captcha map = {}", captchaMap.get(userRegistrationDTO.getCaptchaID())); |
|
|
|
if (userRegistrationDTO.getCaptchaInput().equals(captchaMap.get(userRegistrationDTO.getCaptchaID()))) { |
|
|
|
logger.info("Registration captcha equal success"); |
|
|
|
userService.registerUser(userRegistrationDTO); |
|
|
|
return "redirect:registration?success"; |
|
|
|
} else { |
|
|
|
logger.warn("Registration captcha equal fail"); |
|
|
|
return "redirect:registration?error"; |
|
|
|
} |
|
|
|
userService.registerUser(userRegistrationDTO); |
|
|
|
return "user/home"; |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping(value = "/img/captcha/{image_id}", produces = MediaType.IMAGE_PNG_VALUE) |
|
|
|