mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
fix(wizard): Fixed an issue when using Plex OAuth it could fail setting up
This commit is contained in:
parent
663000c64a
commit
b743cf4faf
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue