Skip to content

Commit 3e79044

Browse files
committed
feat(password): hide password from response
1 parent 1ecae51 commit 3e79044

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/com/andriawan/andresource/entity

1 file changed

+4
-0
lines changed

src/main/java/com/andriawan/andresource/entity/User.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import jakarta.persistence.PreUpdate;
1010
import jakarta.persistence.Table;
1111
import java.time.ZonedDateTime;
12+
13+
import com.fasterxml.jackson.annotation.JsonIgnore;
14+
1215
import lombok.AllArgsConstructor;
1316
import lombok.Builder;
1417
import lombok.Data;
@@ -31,6 +34,7 @@ public class User {
3134
@Column(nullable = false, length = 255)
3235
private String email;
3336

37+
@JsonIgnore
3438
@Column(nullable = false, length = 255)
3539
private String password;
3640

0 commit comments

Comments
 (0)