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 a80639d..a315a6f 100644
--- a/Project-Unite/Controllers/AccountController.cs
+++ b/Project-Unite/Controllers/AccountController.cs
@@ -183,7 +183,7 @@ The addressed used to send this message is not a no-reply address. In fact, my n
{
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);
}
}