fix(wizard): Fixed an issue when using Plex OAuth it could fail setting up

pull/4581/head
Jamie 2 years ago committed by GitHub
parent 663000c64a
commit b743cf4faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,7 +114,7 @@ namespace Ombi.Controllers.V1
public async Task<SaveWizardResult> CreateWizardUser([FromBody] CreateUserWizardModel user)
{
var users = UserManager.Users;
if (users.Any(x => x.UserType == UserType.LocalUser))
if (users.Any(x => x.UserType != UserType.SystemUser))
{
// 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…
Cancel
Save