From 1aab81a7fc854743cbbdf8060723ff75143ae1c5 Mon Sep 17 00:00:00 2001 From: triggermeelmo Date: Wed, 19 Nov 2025 14:01:54 +0100 Subject: [PATCH] =?UTF-8?q?Bug=20bei=20Passwort=C3=A4nderung=20behoben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Watcher/Controllers/UserController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Watcher/Controllers/UserController.cs b/Watcher/Controllers/UserController.cs index b4ef71e..65272f5 100644 --- a/Watcher/Controllers/UserController.cs +++ b/Watcher/Controllers/UserController.cs @@ -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();