From 9bb81c2f9521ac1a8db9d81fe2a043b2d179bba8 Mon Sep 17 00:00:00 2001 From: daniel-hbn Date: Sat, 28 Jun 2025 21:30:41 +0200 Subject: [PATCH] bug fixed --- Watcher/Controllers/AuthController.cs | 2 +- Watcher/Views/Auth/Login.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Watcher/Controllers/AuthController.cs b/Watcher/Controllers/AuthController.cs index 5fd0965..cda31d4 100644 --- a/Watcher/Controllers/AuthController.cs +++ b/Watcher/Controllers/AuthController.cs @@ -59,7 +59,7 @@ public class AuthController : Controller if (user == null || !BCrypt.Net.BCrypt.Verify(model.Password, user.Password)) { ModelState.AddModelError("", "Benutzername oder Passwort ist falsch."); - return View(model); + return View(); } var claims = new List diff --git a/Watcher/Views/Auth/Login.cshtml b/Watcher/Views/Auth/Login.cshtml index 1e89566..49408c0 100644 --- a/Watcher/Views/Auth/Login.cshtml +++ b/Watcher/Views/Auth/Login.cshtml @@ -80,7 +80,7 @@
- @if (ViewBag.oidc) + @if (ViewBag.oidc == true) {