* Login bean (controller)
*/
@Inject
- private AddressbookUserLoginWebSessionController loginController;
+ private AddressbookUserLoginWebSessionController userLoginController;
/**
* Default constructor
@Override
public String doChangeEmailAddress () {
// This method shall only be called if the user is logged-in
- if (!this.loginController.isUserLoggedIn()) {
+ if (!this.userLoginController.isUserLoggedIn()) {
// Not logged-in
throw new IllegalStateException("User is not logged-in"); //NOI18N
} else if (!this.isRequiredChangeEmailAddressSet()) {
} else if (!Objects.equals(this.getEmailAddress(), this.getEmailAddressRepeat())) {
// Email address 1+2 mismatch
throw new FaceletException("Email address 1/2 are mismatching."); //NOI18N
- } else if (!this.loginController.ifCurrentPasswordMatches()) {
+ } else if (!this.userLoginController.ifCurrentPasswordMatches()) {
// Password not matching
this.showFacesMessage("form_login_change_email_address:currentPassword", new UserPasswordMismatchException(this.userLoginController.getLoggedInUser())); //NOI18N
return ""; //NOI18N
}
// Get user instance
- User user = this.loginController.getLoggedInUser();
+ User user = this.userLoginController.getLoggedInUser();
// It should be there, so run some tests on it
assert (user instanceof User) : "Instance loginController.loggedInUser is null"; //NOI18N