mirror of
https://github.com/bitwarden/server.git
synced 2024-11-24 12:35:25 +01:00
Moved models and removed deuplicate error for username since we use emails as username as well.
This commit is contained in:
parent
8b2186989f
commit
994f27ff40
@ -45,7 +45,7 @@ namespace Bit.Api.Controllers
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(var error in result.Errors)
|
||||
foreach(var error in result.Errors.Where(e => e.Code != "DuplicateUserName"))
|
||||
{
|
||||
ModelState.AddModelError(string.Empty, error.Description);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user