From af028f0b564b9ce7f2c185cb9cd6607d17f841a6 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Thu, 28 Apr 2016 14:23:09 +0100 Subject: [PATCH] Did the login bit on #185 --- PlexRequests.UI/Modules/UserLoginModule.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PlexRequests.UI/Modules/UserLoginModule.cs b/PlexRequests.UI/Modules/UserLoginModule.cs index 48adb3989..1bf57150f 100644 --- a/PlexRequests.UI/Modules/UserLoginModule.cs +++ b/PlexRequests.UI/Modules/UserLoginModule.cs @@ -173,10 +173,10 @@ namespace PlexRequests.UI.Modules private bool CheckIfUserIsInPlexFriends(string username, string authToken) { var users = Api.GetUsers(authToken); - Log.Debug("Plex Users: "); - Log.Debug(users.DumpJson()); - var allUsers = users?.User?.Where(x => !string.IsNullOrEmpty(x.Username)); - return allUsers != null && allUsers.Any(x => x.Username.Equals(username, StringComparison.CurrentCultureIgnoreCase)); + Log.Trace("Plex Users: "); + Log.Trace(users.DumpJson()); + var allUsers = users?.User?.Where(x => !string.IsNullOrEmpty(x.Title)); + return allUsers != null && allUsers.Any(x => x.Title.Equals(username, StringComparison.CurrentCultureIgnoreCase)); } private bool IsUserInDeniedList(string username, AuthenticationSettings settings)