Skip to content
Snippets Groups Projects
Commit 2afec935 authored by Wojciech Taisner's avatar Wojciech Taisner
Browse files

NMAAS-1038 disabled recaptcha should work for empty string

parent 51b0ac18
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