Skip to content

Commit

Permalink
https://github.com/rreganjr/Requel/issues/2
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rreganjr committed Feb 16, 2018
1 parent c912bcd commit eef1f76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.rreganjr.requel</groupId>
<artifactId>Requel</artifactId>
<version>1.0.1</version>
<version>1.0.2</version>

<parent>
<groupId>org.springframework.boot</groupId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/rreganjr/requel/user/impl/UserImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit eef1f76

Please sign in to comment.