aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-17 10:43:04 -0600
committercrobibero <cody@robibe.ro>2020-06-17 10:43:04 -0600
commit444605703c91bafdcf1a01d864b7b71bd2a67ddb (patch)
tree1eea5b066befbb58eb9ac514bd2c358358fda71c /Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
parent8a834fb7285681e5a8f3df57e4aac36724c0bc1e (diff)
parentcf9223b8cb2f1ebccf20cb1dcd99d19b78cf3e61 (diff)
Merge remote-tracking branch 'upstream/api-migration' into api-filter
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs')
-rw-r--r--Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
index 129faeaab..9558cb4c6 100644
--- a/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
+++ b/Emby.Server.Implementations/HttpServer/Security/AuthorizationContext.cs
@@ -149,9 +149,9 @@ namespace Emby.Server.Implementations.HttpServer.Security
{
info.User = _userManager.GetUserById(tokenInfo.UserId);
- if (info.User != null && !string.Equals(info.User.Name, tokenInfo.UserName, StringComparison.OrdinalIgnoreCase))
+ if (info.User != null && !string.Equals(info.User.Username, tokenInfo.UserName, StringComparison.OrdinalIgnoreCase))
{
- tokenInfo.UserName = info.User.Name;
+ tokenInfo.UserName = info.User.Username;
updateToken = true;
}
}