Skip to content

Commit

Permalink
Fix plex login (that I broke in the previous commit)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Jan 3, 2025
1 parent 594e954 commit 4b78415
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Shoko.Server/Plex/PlexHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ public bool IsAuthenticated
return isAuthenticated.GetValueOrDefault(false);
}

if (string.IsNullOrEmpty(_user?.PlexToken))
// If key is not null, then we are trying to login. Plex token check should be skipped.
if (_key == null && string.IsNullOrEmpty(_user?.PlexToken))
{
return false;
}
Expand Down

0 comments on commit 4b78415

Please sign in to comment.