From 780c15aa098fca0083bcc88c1441855802580d0b Mon Sep 17 00:00:00 2001 From: Andreea Neata <119867733+andreeaneata@users.noreply.github.com> Date: Fri, 17 Apr 2026 18:00:24 +0300 Subject: [PATCH] Implement password confirmation check method Add method to check if new password matches confirmation. --- .../github/benas/todolist/web/action/user/AccountAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/todolist-goof/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java b/todolist-goof/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java index 8f0cdee23e..c98affeba0 100644 --- a/todolist-goof/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java +++ b/todolist-goof/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java @@ -368,5 +368,8 @@ public void setRegistrationForm(RegistrationForm registrationForm) { public void setUser(User user) { this.user = user; } - + + private boolean newPasswordDoesNotMatchConfirmationPassword() { + return !changePasswordForm.getNewPassword().equals(changePasswordForm.getConfirmationPassword()); + } }