Bug bei Passwortänderung behoben

This commit is contained in:
2025-11-19 14:01:54 +01:00
parent f8961320c5
commit 1aab81a7fc

View File

@@ -108,7 +108,7 @@ public class UserController : Controller
// Passwort ändern
if (!string.IsNullOrWhiteSpace(model.NewPassword))
{
user.Username = BCrypt.Net.BCrypt.HashPassword(model.NewPassword);
user.Password = BCrypt.Net.BCrypt.HashPassword(model.NewPassword);
}
_context.SaveChanges();