ACTUALLY fix bug

This commit is contained in:
Michael 2017-04-10 20:52:52 -04:00
parent 72feceb369
commit 62f222181c

View file

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