Closed gallarotti closed 9 years ago
I changed the Login to be the following and now it seems to work:
//
// POST: /Account/Login
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
{
if (!ModelState.IsValid)
{
return View(model);
}
ApplicationUser user = await UserManager.FindAsync(model.Email, model.Password);
if (user != null)
{
await SignInAsync(user, model.RememberMe);
return RedirectToLocal(returnUrl);
}
else
{
ModelState.AddModelError("", "Invalid username or password.");
return View(model);
}
}
That's because I actually haven't implemented the IUserLockoutStore
If you'd like to contribute with that code sooner than I, be my guest sir :)
Current Neo4jUserStore
implementation does now implement the IUserLockoutStore<TUser, object>
interface.
Please use the code, it's not in nuget yet.
I am getting the above error when trying to login on a standard MVC 5 project built following your instructions. This is the line of code where the exception happens:
which belongs to the following method in the AccountController: