mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
No overload for my ass gives a fuck about that.
This commit is contained in:
parent
ad3003121a
commit
280dcd22e6
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ public async Task<ActionResult> Register(RegisterViewModel model)
|
||||||
{
|
{
|
||||||
if(temp.Users.FirstOrDefault(x=>x.DisplayName==model.Username) != null)
|
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);
|
return View(model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue