updated to reflect proper api response on logout

This commit is contained in:
Morgan McMillian 2016-10-01 12:27:21 -07:00
parent 67364cc528
commit 0a7105438b
3 changed files with 6 additions and 1 deletions

View file

@ -157,6 +157,7 @@ NavigationPane {
onAuthorizationRequired: { onAuthorizationRequired: {
loginSheet.open(); loginSheet.open();
timer.stop();
} }
onAuthorizationReceived: { onAuthorizationReceived: {
@ -185,6 +186,7 @@ NavigationPane {
timer.start(); timer.start();
} else { } else {
loginSheet.open(); loginSheet.open();
timer.stop();
} }
} }
function logout() { function logout() {

View file

@ -1 +1 @@
83 84

View file

@ -217,6 +217,9 @@ void Pnut::onAuthorizedRequestReady(QByteArray data, int id)
{ {
qDebug() << "Logout successful!"; qDebug() << "Logout successful!";
req_map.remove(id); req_map.remove(id);
m_appSettings->remove("access_token");
m_appSettings->remove("username");
emit authorizationRequired();
} }
break; break;
} }