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
Branches
Tags
No related merge requests found
......@@ -26,7 +26,7 @@ public class CaptchaValidator {
}
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");
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