Skip to content

Commit

Permalink
Slight logging tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Jun 28, 2023
1 parent 4abaff8 commit 046d0cd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ public ModelAndView sendNominateRequest(@RequestParam(value = "name", required =
* @return
*/
private boolean checkCaptcha(String gRecaptchaResponse) {
log.info("Validating ReCAPTCHA..." + gRecaptchaResponse.substring(0, 10));
log.info("Validating ReCAPTCHA " + gRecaptchaResponse.substring(0, 10) + "...");
boolean passed = this.isCaptchaValid(this.gRecaptchaSecretKey, gRecaptchaResponse);
if( !passed ) {
log.info("ReCAPTCHA " + gRecaptchaResponse.substring(0, 10) + " failed!");
log.info("ReCAPTCHA " + gRecaptchaResponse.substring(0, 10) + "... failed!");
throw new RuntimeException("ReCAPTCHA Validation Failed!");
}
log.info("ReCAPTCHA " + gRecaptchaResponse.substring(0, 10) + " passed!");
log.info("ReCAPTCHA " + gRecaptchaResponse.substring(0, 10) + "... passed!");
return passed;
}

Expand Down

0 comments on commit 046d0cd

Please sign in to comment.