From eef1f7604493fd4174517889ce58c651a9b988d6 Mon Sep 17 00:00:00 2001 From: rreganjr Date: Fri, 16 Feb 2018 02:24:49 -0500 Subject: [PATCH] https://github.com/rreganjr/Requel/issues/2 In UserImpl getHashedPassword() was changed to getEncryptedPasword(), which caused a new column encrypted_password to be added, that when upgrading an older database causes the passwords originally stored in hashed_password to be ignored and users could not login. The column name is now fixed to hashed_password via the @Column annotation on getEncryptedPassword(). the version in pom.xml was incremenbed to 1.0.2 to match the new milestone. Signed-off-by: rreganjr --- pom.xml | 2 +- src/main/java/com/rreganjr/requel/user/impl/UserImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index ec1ee7c..42cc661 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.rreganjr.requel Requel - 1.0.1 + 1.0.2 org.springframework.boot diff --git a/src/main/java/com/rreganjr/requel/user/impl/UserImpl.java b/src/main/java/com/rreganjr/requel/user/impl/UserImpl.java index 72327fc..28d6740 100644 --- a/src/main/java/com/rreganjr/requel/user/impl/UserImpl.java +++ b/src/main/java/com/rreganjr/requel/user/impl/UserImpl.java @@ -324,7 +324,7 @@ private boolean isValidPassword(String password) { return (password != null) && (password.trim().length() > 0) && password.length() <= MAX_PASSWORD_LENGTH; } - @Column(nullable = false) + @Column(name="hashed_password", nullable = false) @NotEmpty(message = "password is required and both fields must match.") @XmlElement(name = "password", required = true, namespace = "http://www.rreganjr.com/requel") private String getEncryptedPassword() {