updated to reflect proper api response on logout
This commit is contained in:
parent
67364cc528
commit
0a7105438b
3 changed files with 6 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
2
buildnum
2
buildnum
|
@ -1 +1 @@
|
||||||
83
|
84
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue