summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers/AccountController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Controllers/AccountController.cs')
-rw-r--r--Project-Unite/Controllers/AccountController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project-Unite/Controllers/AccountController.cs b/Project-Unite/Controllers/AccountController.cs
index 6ee32d0..453acb9 100644
--- a/Project-Unite/Controllers/AccountController.cs
+++ b/Project-Unite/Controllers/AccountController.cs
@@ -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);