1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-18 02:11:22 +01:00

Moved models and removed deuplicate error for username since we use emails as username as well.

This commit is contained in:
Kyle Spearrin 2016-03-08 21:20:56 -05:00
parent 8b2186989f
commit 994f27ff40
6 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace Bit.Api.Controllers
return; return;
} }
foreach(var error in result.Errors) foreach(var error in result.Errors.Where(e => e.Code != "DuplicateUserName"))
{ {
ModelState.AddModelError(string.Empty, error.Description); ModelState.AddModelError(string.Empty, error.Description);
} }