Skip to content

Commit

Permalink
Fix Pin not being validated when switching users from menu, part of x…
Browse files Browse the repository at this point in the history
  • Loading branch information
LongChair committed Jan 27, 2015
1 parent f558c4e commit 346dc21
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions plex/GUI/GUIWindowStartup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,15 @@ bool CGUIWindowStartup::OnMessage(CGUIMessage& message)
setPinControlText(m_pin);

m_users.Clear();
m_viewControl.Reset();

g_windowManager.setRetrictedAccess(true);

if (g_plexApplication.myPlexManager->IsSignedIn())
{
if (g_plexApplication.myPlexManager->GetCurrentUserInfo().authToken != m_currentToken)
{
m_currentToken = g_plexApplication.myPlexManager->GetCurrentUserInfo().authToken;
{
m_currentToken = g_plexApplication.myPlexManager->GetCurrentUserInfo().authToken;

CPlexDirectoryFetchJob * job = new CPlexDirectoryFetchJob(CURL("plexserver://myplex/api/home/users"));
CJobManager::GetInstance().AddJob(job, this);
}
CPlexDirectoryFetchJob * job = new CPlexDirectoryFetchJob(CURL("plexserver://myplex/api/home/users"));
CJobManager::GetInstance().AddJob(job, this);
}
}

Expand Down

0 comments on commit 346dc21

Please sign in to comment.