/**
* Current password
*/
- private String currentPassword;
+ private String userCurrentPassword;
/**
* Logged-in user instance
}
@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
@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());
*/
private void clear () {
// Clear all fields
- this.setCurrentPassword(null);
+ this.setUserCurrentPassword(null);
}
/**
/**
* Setter for current password (clear text)
* <p>
- * @param currentPassword Current password
+ * @param userCurrentPassword Current password
*/
- void setCurrentPassword (final String currentPassword);
+ void setUserCurrentPassword (final String userCurrentPassword);
/**
* Getter for current password (clear text)
* <p>
* @return Current password
*/
- String getCurrentPassword ();
+ String getUserCurrentPassword ();
/**
* Checks whether the (previously entered) current password matches with
</div>
<div class="table_right">
- <h:inputSecret styleClass="input" id="currentPassword" size="10" maxlength="255" value="#{targetController.currentPassword}" required="true" validatorMessage="#{msg.ERROR_USER_CURRENT_PASSWORD_MISMATCHING}">
+ <h:inputSecret styleClass="input" id="currentPassword" size="10" maxlength="255" value="#{targetController.userCurrentPassword}" required="true" validatorMessage="#{msg.ERROR_USER_CURRENT_PASSWORD_MISMATCHING}">
<!-- <f:validator for="currentPassword" validatorId="RecruiterUserPasswordValidator" /> //-->
</h:inputSecret>
</div>