add comment to User.java with TODO
This commit is contained in:
parent
9c117f8ffb
commit
569581951f
|
@ -62,6 +62,8 @@ 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
|
||||
@Override
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
@ -113,11 +115,10 @@ 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 the authorities (roles) from user which haven't been implemented yet
|
||||
return Collections.emptyList(); // Return empty list since no roles exist yet
|
||||
}
|
||||
|
||||
@JsonIgnore
|
||||
@Override
|
||||
public String getPassword() {
|
||||
return passwordHash;
|
||||
|
|
Loading…
Reference in a new issue