mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-13 18:16:55 -07:00
Fixed emby connect login issue
This commit is contained in:
parent
52a22b3a60
commit
6ad6dd4a74
2 changed files with 5 additions and 2 deletions
|
@ -111,11 +111,13 @@ namespace Ombi.Core.Authentication
|
|||
// We cannot update the email address in the user importer due to there is no way
|
||||
// To get this info from Emby Connect without the username and password.
|
||||
// So we do it here!
|
||||
if (!user.Email.Equals(result.User?.Email))
|
||||
var email = user.Email ?? string.Empty;
|
||||
if (!email.Equals(result.User?.Email))
|
||||
{
|
||||
user.Email = result.User?.Email;
|
||||
await UpdateAsync(user);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue