diff --git a/BTCPayServer/Controllers/AccountController.cs b/BTCPayServer/Controllers/AccountController.cs index 53d730c97..b4dded46a 100644 --- a/BTCPayServer/Controllers/AccountController.cs +++ b/BTCPayServer/Controllers/AccountController.cs @@ -100,6 +100,11 @@ namespace BTCPayServer.Controllers return View(model); } } + else + { + ModelState.AddModelError(string.Empty, "Invalid login attempt."); + return View(model); + } if (!await _userManager.IsLockedOutAsync(user) && await _u2FService.HasDevices(user.Id)) {