Posts

Why do I have a login issue after updating rows in my database?

Image
up vote 1 down vote favorite I have a user in my database and I would like to edit their information. I am trying to add their gender and height. The problem is, that after updating my user, I am unable to log in again. This error has been quite persisting and it always happens after updating my user. This is my HTML code: <form th:action="@{/editprofile/save}" th:object="${user}" method="post"> And my Controller code: @PostMapping("/editprofile/save") public String save(@Valid User user, BindingResult result, RedirectAttributes redirect, Principal principal) { if(result.hasErrors()) { return "views/success"; } System.out.println(user.getEmail()); System.out.println(user.getPassword()); System.out.println(user.getRepassword()); ...