1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-18 16:11:28 -05:00

bootstrap 4 styling

This commit is contained in:
Kyle Spearrin
2018-03-20 17:11:43 -04:00
parent 3d9d193bda
commit a29b1a6dfa
6 changed files with 56 additions and 81 deletions

View File

@ -25,13 +25,20 @@ namespace Billing.Controllers
[ValidateAntiForgeryToken]
public async Task<IActionResult> Index(LoginModel model)
{
var result = await _signInManager.PasswordlessSignInAsync(model.Email);
if(!result.Succeeded)
if(ModelState.IsValid)
{
return View("Error");
var result = await _signInManager.PasswordlessSignInAsync(model.Email);
if(result.Succeeded)
{
return RedirectToAction("Index", "Home");
}
else
{
ModelState.AddModelError(string.Empty, "Account not found.");
}
}
return RedirectToAction("Index", "Home");
return View(model);
}
public async Task<IActionResult> Confirm(string email, string token)