Skip to content
Snippets Groups Projects
Commit d7d0413b authored by Wojciech Taisner's avatar Wojciech Taisner Committed by Lukasz Lopatowski
Browse files

Pull request #805: Disable recaptcha checks if keys are not provided

Merge in NMAAS/nmaas from NMAAS-1038-disable-recaptcha-checks-if-keys-are-not-provided to develop

* commit '2afec935':
  NMAAS-1038 disabled recaptcha should work for empty string
parents cc85ce43 2afec935
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ public class CaptchaValidator { ...@@ -26,7 +26,7 @@ public class CaptchaValidator {
} }
public boolean verifyToken(String token) { public boolean verifyToken(String token) {
if (secret.equalsIgnoreCase("not_provided")) { if (secret.equalsIgnoreCase("not_provided") || secret.isEmpty()) {
log.info("Skipped captcha validation due to not provided token"); log.info("Skipped captcha validation due to not provided token");
return true; // validate if secret is not provided return true; // validate if secret is not provided
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment