Login POST Test Working (#198)

* Got login test working

With request verification token
This commit is contained in:
Steve Smith
2019-01-25 13:54:35 -05:00
committed by GitHub
parent 1b610dd7a4
commit 8941e6b9a6
2 changed files with 44 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ namespace Microsoft.eShopWeb.Web.Controllers
// POST: /Account/SignIn
[HttpPost]
[AllowAnonymous]
//[ValidateAntiForgeryToken]
[ValidateAntiForgeryToken]
public async Task<IActionResult> SignIn(LoginViewModel model, string returnUrl = null)
{
if (!ModelState.IsValid)