No overload for my ass gives a fuck about that.

This commit is contained in:
Michael 2017-04-11 10:22:55 -04:00
parent ad3003121a
commit 280dcd22e6

View file

@ -183,7 +183,7 @@ public async Task<ActionResult> Register(RegisterViewModel model)
{
if(temp.Users.FirstOrDefault(x=>x.DisplayName==model.Username) != null)
{
ModelState.AddModelError("Your display name is already taken.");
ModelState.AddModelError("Username", new Exception("Your display name is already taken."));
return View(model);
}
}