add comment to User.java with TODO

This commit is contained in:
Mika Bomm 2024-09-22 12:26:44 +02:00
parent d1419fb897
commit 502a80df95

View file

@ -62,6 +62,7 @@ public class User implements UserDetails {
this.userId = userId;
}
// TODO: Figure out if this is necessary here since getUsername() should be used on the Entity however this references the interface
public String getUsername() {
return username;
}
@ -113,8 +114,7 @@ public class User implements UserDetails {
// UserDetails interface methods
@Override
public Collection<? extends GrantedAuthority> getAuthorities() {
// Return the authorities granted to the user
return Collections.emptyList(); // Implement this based on your requirements
return Collections.emptyList(); // returns roles of the user // currently returns an empty list
}
@JsonIgnore