Set user password to write only
parent
2e5208e359
commit
3b57e70eb0
|
@ -2,6 +2,8 @@ package ba.steleks.model;/**
|
||||||
* Created by ensar on 22/03/17.
|
* Created by ensar on 22/03/17.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.NotNull;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
|
@ -31,6 +33,7 @@ public class User {
|
||||||
@NotNull
|
@NotNull
|
||||||
private String contactNumber;
|
private String contactNumber;
|
||||||
@NotNull
|
@NotNull
|
||||||
|
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
|
||||||
private String passwordHash;
|
private String passwordHash;
|
||||||
@NotNull
|
@NotNull
|
||||||
private String username;
|
private String username;
|
||||||
|
|
Reference in New Issue