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:
@@ -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>
|
||||
|
@@ -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">
|
||||
|
Reference in New Issue
Block a user