mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-13 08:42:57 -07:00
Fixed #2042
This commit is contained in:
parent
d69f342b0f
commit
5f7ce5c175
2 changed files with 13 additions and 0 deletions
|
@ -94,6 +94,13 @@ namespace Ombi.Schedule.Jobs.Emby
|
||||||
var existingEmbyUser = allUsers.FirstOrDefault(x => x.ProviderUserId == embyUser.Id);
|
var existingEmbyUser = allUsers.FirstOrDefault(x => x.ProviderUserId == embyUser.Id);
|
||||||
if (existingEmbyUser == null)
|
if (existingEmbyUser == null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!embyUser.ConnectUserName.HasValue() && !embyUser.Name.HasValue())
|
||||||
|
{
|
||||||
|
_log.LogInformation("Could not create Emby user since the have no username, PlexUserId: {0}", embyUser.Id);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Create this users
|
// Create this users
|
||||||
// We do not store a password against the user since they will authenticate via Plex
|
// We do not store a password against the user since they will authenticate via Plex
|
||||||
var newUser = new OmbiUser
|
var newUser = new OmbiUser
|
||||||
|
|
|
@ -75,6 +75,12 @@ namespace Ombi.Schedule.Jobs.Plex
|
||||||
var existingPlexUser = allUsers.FirstOrDefault(x => x.ProviderUserId == plexUser.Id);
|
var existingPlexUser = allUsers.FirstOrDefault(x => x.ProviderUserId == plexUser.Id);
|
||||||
if (existingPlexUser == null)
|
if (existingPlexUser == null)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (!plexUser.Username.HasValue())
|
||||||
|
{
|
||||||
|
_log.LogInformation("Could not create Plex user since the have no username, PlexUserId: {0}", plexUser.Id);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// Create this users
|
// Create this users
|
||||||
// We do not store a password against the user since they will authenticate via Plex
|
// We do not store a password against the user since they will authenticate via Plex
|
||||||
var newUser = new OmbiUser
|
var newUser = new OmbiUser
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue