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. * 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;