mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Try again to fix it !wip
This commit is contained in:
parent
b20eb0212f
commit
2fdccf277f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue