*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* Generates a secure, unique hash for given email address change. This
* requires to check if the hash is really not there.
* <p>
* Generates a secure, unique hash for given email address change. This
* requires to check if the hash is really not there.
* <p>
- throw new NullPointerException("emailAddress is null"); //NOI18N
- } else if (emailAddress.getEmailAddress().trim().isEmpty()) {
+ throw new NullPointerException("emailAddressChange is null"); //NOI18N
+ } else if (emailAddressChange.getEmailAddress().trim().isEmpty()) {
- hash = UserUtils.encryptPassword(String.format("%s:%s", emailAddress.getEmailAddress(), emailAddress.toString())); //NOI18N
+ hash = UserUtils.encryptPassword(String.format("%s:%s", emailAddressChange.getEmailAddress(), emailAddressChange.toString())); //NOI18N
// The hash *may* be unique, better test it
Query query = this.getEntityManager().createNamedQuery("SearchEmailChangeByHash", EmailAddressChange.class); //NOI18N
// The hash *may* be unique, better test it
Query query = this.getEntityManager().createNamedQuery("SearchEmailChangeByHash", EmailAddressChange.class); //NOI18N