Set user password to write only

master
esensar 2017-04-16 20:30:55 +02:00
parent 2e5208e359
commit 3b57e70eb0
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@ package ba.steleks.model;/**
* Created by ensar on 22/03/17.
*/
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.sql.Timestamp;
@ -31,6 +33,7 @@ public class User {
@NotNull
private String contactNumber;
@NotNull
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String passwordHash;
@NotNull
private String username;