add comment to User.java with TODO
This commit is contained in:
parent
d1419fb897
commit
502a80df95
1 changed files with 2 additions and 2 deletions
|
@ -62,6 +62,7 @@ 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
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
|
@ -113,8 +114,7 @@ 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 Collections.emptyList(); // returns roles of the user // currently returns an empty list
|
||||||
return Collections.emptyList(); // Implement this based on your requirements
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
|
|
Loading…
Reference in a new issue