Skip to content

Commit

Permalink
captcha validation behaviour improvement - don't remove password if c…
Browse files Browse the repository at this point in the history
…aptcha validation failed
  • Loading branch information
katkav committed Nov 9, 2016
1 parent ad52e8e commit 34e1a3d
Showing 1 changed file with 0 additions and 6 deletions.
Expand Up @@ -380,9 +380,7 @@ private boolean validateCaptcha(AjaxRequestTarget target) {
LOGGER.error(message);
getSession().error(message);
target.add(getFeedbackPanel());
removePassword(target);
updateCaptcha(target);
// target.add(this);
return false;
}

Expand All @@ -392,10 +390,8 @@ private boolean validateCaptcha(AjaxRequestTarget target) {
.getString();
LOGGER.error(message);
getSession().error(message);
removePassword(target);
updateCaptcha(target);
target.add(getFeedbackPanel());
// target.add(this);
return false;
}
}
Expand All @@ -410,8 +406,6 @@ private void updateCaptcha(AjaxRequestTarget target) {

Form form = (Form) get(ID_MAIN_FORM);
form.addOrReplace(captcha);
// captcha.invalidateCaptcha();
// Image image = (Image) get(createComponentPath(ID_MAIN_FORM, ID_CAPTCHA, "image"));
target.add(form);
}

Expand Down

0 comments on commit 34e1a3d

Please sign in to comment.