add comment to User.java with TODO

This commit is contained in:
Mika Bomm 2024-09-08 10:23:02 +02:00
parent 9c117f8ffb
commit 569581951f

View file

@ -62,6 +62,8 @@ public class User implements UserDetails {
this.userId = userId; this.userId = userId;
} }
// TODO: Figure out if this is necessary here since getUsername() should be used on the Entity however this references the interface
@Override
public String getUsername() { public String getUsername() {
return username; return username;
} }
@ -113,11 +115,10 @@ public class User implements UserDetails {
// UserDetails interface methods // UserDetails interface methods
@Override @Override
public Collection<? extends GrantedAuthority> getAuthorities() { public Collection<? extends GrantedAuthority> getAuthorities() {
// Return the authorities granted to the user // Return the authorities (roles) from user which haven't been implemented yet
return Collections.emptyList(); // Implement this based on your requirements return Collections.emptyList(); // Return empty list since no roles exist yet
} }
@JsonIgnore
@Override @Override
public String getPassword() { public String getPassword() {
return passwordHash; return passwordHash;