From 39347cef92a28fa6206c1568b40629fedf15cf3e Mon Sep 17 00:00:00 2001 From: scotte-snyk <59706011+scotte-snyk@users.noreply.github.com> Date: Thu, 21 Jul 2022 10:51:53 -0400 Subject: [PATCH] Update AccountAction.java --- .../github/benas/todolist/web/action/user/AccountAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java b/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java index 7572f2942a..cc82b1e35e 100644 --- a/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java +++ b/todolist-web-struts/src/main/java/io/github/benas/todolist/web/action/user/AccountAction.java @@ -250,9 +250,9 @@ private boolean newPasswordDoesNotMatchConfirmationPassword() { return !changePasswordForm.getNewPassword().equals(changePasswordForm.getConfirmationPassword()); } - /* private boolean incorrectCurrentPassword(User user) { + private boolean incorrectCurrentPassword(User user) { return !changePasswordForm.getCurrentPassword().equals(user.getPassword()); - }*/ + } private void validateChangePasswordForm() { validateCurrentPassword();