From 3532c20ea62853909c5adf5f1617488d1605f1ca Mon Sep 17 00:00:00 2001 From: Jamie Rees Date: Fri, 27 Apr 2018 22:00:12 +0100 Subject: [PATCH] Really fixed #2119 this time !wip --- src/Ombi/Controllers/IdentityController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ombi/Controllers/IdentityController.cs b/src/Ombi/Controllers/IdentityController.cs index ffaff8ff0..4aaf86d4b 100644 --- a/src/Ombi/Controllers/IdentityController.cs +++ b/src/Ombi/Controllers/IdentityController.cs @@ -110,7 +110,7 @@ namespace Ombi.Controllers public async Task CreateWizardUser([FromBody] CreateUserWizardModel user) { var users = UserManager.Users; - if (users.Any()) + if (users.Any(x => !x.UserName.Equals("api", StringComparison.CurrentCultureIgnoreCase))) { // No one should be calling this. Only the wizard return false;