fix(plex-oauth): 🐛 Fixed an issue where using OAuth you could log in as a Ombi Local user #4835

pull/4871/head
tidusjar 1 year ago
parent 86d9837ba2
commit 4098da305a

@ -209,7 +209,7 @@ namespace Ombi.Controllers.V1
// Could this be an email login?
user = await _userManager.FindByEmailAsync(account.user.email);
if (user == null)
if (user == null || user.UserType != UserType.PlexUser)
{
return new UnauthorizedResult();
}

Loading…
Cancel
Save