Try again to fix it !wip

pull/2411/head^2
Jamie 6 years ago
parent b20eb0212f
commit 2fdccf277f

@ -119,10 +119,10 @@ namespace Ombi.Controllers
public async Task<SaveWizardResult> CreateWizardUser([FromBody] CreateUserWizardModel user)
{
var users = UserManager.Users;
if (users.Any(x => !x.UserName.Equals("api", StringComparison.CurrentCultureIgnoreCase)))
if (users.Any(x => !x.UserName.Equals("api", StringComparison.InvariantCultureIgnoreCase)))
{
// No one should be calling this. Only the wizard
return new SaveWizardResult{ Result = false };
return new SaveWizardResult{ Result = false, Errors = new List<string> {"Looks like there is an existing user!"} };
}
if (user.UsePlexAdminAccount)

Loading…
Cancel
Save