We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2edf67a commit 6e2b196Copy full SHA for 6e2b196
1 file changed
src/main/java/org/acme/authorization_server/domain/entity/User.java
@@ -47,7 +47,7 @@ public class User extends BaseAuditEntity
47
48
public User(final String username, final String password) {
49
this.username = deleteWhitespace(username);
50
- this.password = deleteWhitespace(password);
+ setPassword(password);
51
this.enabled = true;
52
}
53
@@ -84,4 +84,8 @@ public Collection<? extends GrantedAuthority> getAuthorities() {
84
public void eraseCredentials() {
85
password = null;
86
87
+
88
+ public void setPassword(final String password) {
89
+ this.password = deleteWhitespace(password);
90
+ }
91
0 commit comments