mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
Fixed #1090
This commit is contained in:
parent
4ccffabfc0
commit
15dab75418
3 changed files with 10 additions and 2 deletions
|
@ -208,11 +208,17 @@ namespace Ombi.UI.Authentication
|
|||
|
||||
var plexUsers = configuration.PlexUserRepository.GetAll();
|
||||
var plexUser = plexUsers.FirstOrDefault(x => Guid.Parse(x.LoginId) == userGuid);
|
||||
var embyUsers = configuration.EmbyUserRepository.GetAll();
|
||||
var embyUser = embyUsers.FirstOrDefault(x => Guid.Parse(x.LoginId) == userGuid);
|
||||
|
||||
if (plexUser != null)
|
||||
{
|
||||
identity.UserName = plexUser.Username;
|
||||
}
|
||||
if (embyUser != null)
|
||||
{
|
||||
identity.UserName = embyUser.Username;
|
||||
}
|
||||
|
||||
var localUsers = configuration.LocalUserRepository.GetAll();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue