render json info when pass succeeded but email is not confirmed

This commit is contained in:
2018-01-10 21:28:11 +01:00
parent 44f5fa3ec2
commit 3839d4cfdb

View File

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