mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #3406
This commit is contained in:
parent
7a422cd82e
commit
556d63e00a
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ namespace Ombi.Controllers.V1
|
|||
public async Task<SaveWizardResult> CreateWizardUser([FromBody] CreateUserWizardModel user)
|
||||
{
|
||||
var users = UserManager.Users;
|
||||
if (users.Any(x => !x.UserName.Equals("api", StringComparison.InvariantCultureIgnoreCase)))
|
||||
if (users.Any(x => x.NormalizedUserName != "API"))
|
||||
{
|
||||
// No one should be calling this. Only the wizard
|
||||
return new SaveWizardResult { Result = false, Errors = new List<string> { "Looks like there is an existing user!" } };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue