render json info when pass succeeded but email is not confirmed

This commit is contained in:
Paul Schneider 2018-01-10 21:28:11 +01:00
commit c0aaa36048

View file

@ -117,7 +117,7 @@ namespace Yavsc.Controllers
{ {
ModelState.AddModelError(string.Empty, ModelState.AddModelError(string.Empty,
"You must have a confirmed email to log in."); "You must have a confirmed email to log in.");
return View(model); return this.ViewOk(model);
} }
} }