Merge pull request 'Falsches Passwort bringt die App nicht mehr zum Absturz' (#49) from bug/login-with-false-password into development

Reviewed-on: daniel-hbn/Watcher#49
This commit is contained in:
2025-06-28 19:31:40 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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<Claim>

View File

@@ -80,7 +80,7 @@
<hr class="my-4" />
@if (ViewBag.oidc)
@if (ViewBag.oidc == true)
{
<form asp-controller="Auth" asp-action="SignIn" method="get">
<div class="d-grid gap-2">