From 2fdccf277f21aaa33b63cea2569d36e9ca007766 Mon Sep 17 00:00:00 2001 From: Jamie Date: Sat, 28 Jul 2018 00:39:17 +0100 Subject: [PATCH] Try again to fix it !wip --- src/Ombi/Controllers/IdentityController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ombi/Controllers/IdentityController.cs b/src/Ombi/Controllers/IdentityController.cs index 06f076b3d..742d75b34 100644 --- a/src/Ombi/Controllers/IdentityController.cs +++ b/src/Ombi/Controllers/IdentityController.cs @@ -119,10 +119,10 @@ namespace Ombi.Controllers public async Task 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 {"Looks like there is an existing user!"} }; } if (user.UsePlexAdminAccount)