@NamedQueries (
value = {
@NamedQuery (name = "SearchEmailChangeByEmail", query = "SELECT e FROM email_changes AS e WHERE LOWER(e.emailAddress) LIKE LOWER(:email)"),
- @NamedQuery (name = "AllEmailAddressChanges", query = "SELECT e.emailAddress FROM email_changes AS e ORDER BY e.emailChangeId ASC")
+ @NamedQuery (name = "AllEmailAddressChanges", query = "SELECT e.emailAddress FROM email_changes AS e ORDER BY e.emailChangeId ASC"),
+ @NamedQuery (name = "SearchEmailChangeByHash", query = "SELECT e FROM email_changes AS e WHERE e.emailChangeHash = :hash")
}
)
public class EmailAddressChange implements ChangeableEmailAddress {
/**
* Checks if password from container matches the updatedUser's password
* <p>
- * @param container Container holding user instance and unencrypted password
+ * @param container Container holding user instance and unencrypted
+ * password
* @param updatedUser Updated user instance from database
* <p>
- * @return Whethet the password matches
+ * @return Whether the password matches
*/
public static boolean ifPasswordMatches (final LoginContainer container, final User updatedUser) {
// Validate parameters