Avoid password leakage
The password should never be parsed to json ever so can be safely ignored.
This commit is contained in:
parent
cba11d54ff
commit
f19236b3f7
@ -7,6 +7,8 @@ import ovh.herisson.Clyde.Tables.Msg.Message;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
|
||||
|
||||
@Entity
|
||||
@Table(name = "Users")
|
||||
@ -22,7 +24,8 @@ public class User {
|
||||
private String country;
|
||||
private Date birthDate;
|
||||
private String profilePictureUrl;
|
||||
private ovh.herisson.Clyde.Tables.Role role;
|
||||
private Role role;
|
||||
@JsonIgnore
|
||||
private String password;
|
||||
|
||||
////// Extension Messagerie /////
|
||||
|
Loading…
Reference in New Issue
Block a user