From 403de61d55db9d812668d4eba092706b46db8610 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 29 Aug 2016 17:05:11 +0200 Subject: [PATCH] Please cherry-pick: - renamed currentPassword -> userCurrentPassword --- .../login/JobsUserLoginWebSessionBean.java | 22 +++++++++---------- .../JobsUserLoginWebSessionController.java | 6 ++--- .../user/user_enter_current_password.tpl | 2 +- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java index 54b5d8c0..17cb770b 100644 --- a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java +++ b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionBean.java @@ -85,7 +85,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J /** * Current password */ - private String currentPassword; + private String userCurrentPassword; /** * Logged-in user instance @@ -285,13 +285,13 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J } @Override - public String getCurrentPassword () { - return this.currentPassword; + public String getUserCurrentPassword () { + return this.userCurrentPassword; } @Override - public void setCurrentPassword (final String currentPassword) { - this.currentPassword = currentPassword; + public void setUserCurrentPassword (final String userCurrentPassword) { + this.userCurrentPassword = userCurrentPassword; } @Override @@ -312,16 +312,16 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J @Override public boolean ifCurrentPasswordMatches () { // The current password must be set and not empty - if (this.getCurrentPassword() == null) { + if (this.getUserCurrentPassword() == null) { // Is not set - throw new NullPointerException("this.currentPassword is null"); //NOI18N - } else if (this.getCurrentPassword().isEmpty()) { + throw new NullPointerException("this.userCurrentPassword is null"); //NOI18N + } else if (this.getUserCurrentPassword().isEmpty()) { // Is set empty - throw new IllegalStateException("this.currentPassword is empty."); //NOI18N + throw new IllegalStateException("this.userCurrentPassword is empty."); //NOI18N } // Create "container" - LoginContainer container = new UserLoginContainer(this.getLoggedInUser(), this.getCurrentPassword()); + LoginContainer container = new UserLoginContainer(this.getLoggedInUser(), this.getUserCurrentPassword()); // Now check if it matches return UserUtils.ifPasswordMatches(container, this.getLoggedInUser()); @@ -387,7 +387,7 @@ public class JobsUserLoginWebSessionBean extends BaseJobsController implements J */ private void clear () { // Clear all fields - this.setCurrentPassword(null); + this.setUserCurrentPassword(null); } /** diff --git a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java index 597a1738..f7a1cbb8 100644 --- a/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java +++ b/src/java/org/mxchange/jjobs/beans/login/JobsUserLoginWebSessionController.java @@ -122,16 +122,16 @@ public interface JobsUserLoginWebSessionController extends Serializable { /** * Setter for current password (clear text) *

- * @param currentPassword Current password + * @param userCurrentPassword Current password */ - void setCurrentPassword (final String currentPassword); + void setUserCurrentPassword (final String userCurrentPassword); /** * Getter for current password (clear text) *

* @return Current password */ - String getCurrentPassword (); + String getUserCurrentPassword (); /** * Checks whether the (previously entered) current password matches with diff --git a/web/WEB-INF/templates/login/user/user_enter_current_password.tpl b/web/WEB-INF/templates/login/user/user_enter_current_password.tpl index 0a6ab254..8c6e2ece 100644 --- a/web/WEB-INF/templates/login/user/user_enter_current_password.tpl +++ b/web/WEB-INF/templates/login/user/user_enter_current_password.tpl @@ -25,7 +25,7 @@

- +
-- 2.39.5