Commit bc732878 authored by Matija Obreza's avatar Matija Obreza
Browse files

Make sure all parameters are available on captcha failure

parent 7169f253
...@@ -105,13 +105,13 @@ public class RequestController extends BaseController { ...@@ -105,13 +105,13 @@ public class RequestController extends BaseController {
if (StringUtils.isBlank(emailAddress)) { if (StringUtils.isBlank(emailAddress)) {
_logger.warn("No email address was specified for request. Stopping here."); _logger.warn("No email address was specified for request. Stopping here.");
return "/request/personal"; return start(model);
} }
// Validate the reCAPTCHA // Validate the reCAPTCHA
if (currentUser == null && !ReCaptchaUtil.isValid(captchaPrivateKey, req.getRemoteAddr(), challenge, response)) { if (currentUser == null && !ReCaptchaUtil.isValid(captchaPrivateKey, req.getRemoteAddr(), challenge, response)) {
_logger.warn("Recaptcha not valid. Stopping here."); _logger.warn("Recaptcha not valid. Stopping here.");
return "/request/personal"; return start(model);
} }
_logger.info("Checking for ITPGRFA PID account for " + emailAddress); _logger.info("Checking for ITPGRFA PID account for " + emailAddress);
......
Supports Markdown
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