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:
parent
8b2186989f
commit
994f27ff40
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user