Commit e424f399 authored by Matija Obreza's avatar Matija Obreza

Fixed ReCaptcha problem (#51 Unable to send request for germplasm)

parent c41ed39a
......@@ -63,13 +63,13 @@ public class RequestController extends BaseController {
@Autowired
private ContentService contentService;
@Value("${captcha.siteKey}")
private String captchaSiteKey;
@Value("${captcha.privateKey}")
private String captchaPrivateKey;
@Value("${captcha.siteKey}")
private String captchaSiteKey;
@Autowired
private RequestService requestService;
......@@ -104,8 +104,7 @@ public class RequestController extends BaseController {
@RequestMapping(method = RequestMethod.POST, value = "/submit")
public String submit(ModelMap model, HttpServletRequest req, @RequestParam(value = "email", defaultValue = "", required = true) String requestEmail,
@RequestParam(value = "recaptcha_challenge_field", required = false) String challenge,
@RequestParam(value = "recaptcha_response_field", required = false) String response, @RequestParam(value = "notes") String notes,
@RequestParam(value = "g-recaptcha-response", required = false) String response, @RequestParam(value = "notes") String notes,
@RequestParam(value = "purpose") int purposeType, @RequestParam(value = "smta", required = false) Boolean preacceptSMTA) throws IOException {
final User currentUser = SecurityContextUtil.getCurrentUser();
......
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