mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 04:57:35 +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 @@ The addressed used to send this message is not a no-reply address. In fact, my n
|
|||
{
|
||||
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…
Add table
Reference in a new issue