mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
ACTUALLY fix bug
This commit is contained in:
parent
72feceb369
commit
62f222181c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue