added security and fix edit profile

This commit is contained in:
SlimusMinus
2026-06-18 00:22:50 +03:00
parent 81e3e007e1
commit bafb636cbe
24 changed files with 418 additions and 56 deletions

View File

@@ -23,13 +23,16 @@ public class User {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String name;
private String lastName;
@Column(unique = true)
private String login;
private String password;
private LocalDateTime createdAt;
private String email;
private String phone;
@Enumerated(EnumType.STRING)
private Role role = Role.USER;
private String avatarUrl;
@PrePersist
public void prePersist() {