Skip to content

Commit

Permalink
Add setUsername method
Browse files Browse the repository at this point in the history
  • Loading branch information
rogargon committed Apr 19, 2024
1 parent 1d63545 commit b2ce843
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/cat/udl/eps/softarch/demo/domain/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public void encodePassword() {
@Override
public String getUsername() { return id; }

public void setUsername(String username) { this.id = username; }

@Override
@JsonValue(value = false)
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
Expand Down

0 comments on commit b2ce843

Please sign in to comment.