Commit bc732878 authored by Matija Obreza's avatar Matija Obreza

Make sure all parameters are available on captcha failure

parent 7169f253
......@@ -105,13 +105,13 @@ public class RequestController extends BaseController {
if (StringUtils.isBlank(emailAddress)) {
_logger.warn("No email address was specified for request. Stopping here.");
return "/request/personal";
return start(model);
}
// Validate the reCAPTCHA
if (currentUser == null && !ReCaptchaUtil.isValid(captchaPrivateKey, req.getRemoteAddr(), challenge, response)) {
_logger.warn("Recaptcha not valid. Stopping here.");
return "/request/personal";
return start(model);
}
_logger.info("Checking for ITPGRFA PID account for " + emailAddress);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment