mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 07:22:35 -07:00
Use the user alias everywhere if it is set #218
This commit is contained in:
parent
4629301264
commit
eb120e6840
3 changed files with 50 additions and 1 deletions
|
@ -109,7 +109,12 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
try
|
||||
{
|
||||
_username = User == null ? Session[SessionKeys.UsernameKey].ToString() : User.UserName;
|
||||
var username = Security.GetUsername(User.UserName);
|
||||
if (string.IsNullOrEmpty(username))
|
||||
{
|
||||
return Session[SessionKeys.UsernameKey].ToString();
|
||||
}
|
||||
_username = username;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue