oprava zmeny hesla

This commit is contained in:
roman
2026-06-11 22:01:31 +02:00
parent 926c578df8
commit 1782d2c5ac
3 changed files with 19 additions and 9 deletions
@@ -126,7 +126,8 @@ public class AuthController : ControllerBase
resetToken.Used = true;
}
user.PasswordHash = BCrypt.Net.BCrypt.HashPassword(req.NewPassword);
user.PasswordHash = BCrypt.Net.BCrypt.HashPassword(req.NewPassword);
user.MustChangePassword = false;
await _db.SaveChangesAsync();
return Ok("Heslo bolo úspešne zmenené.");