History

Added logout. Truncate username to 8 characters

vladest committed 9 years ago

Commit 26026cb1 parent be56cab4 files · +39 −10Browse files

Showing the changes to interface/src/scripting/AccountScriptingInterface.cpp (1 of 4 files). Show all

Unified · Split

interface/src/scripting/AccountScriptingInterface.cpp+5−0
@@ -31,6 +31,11 @@ bool AccountScriptingInterface::checkAndSignalForAccessToken() { · 30 unmodified lines
3131 return accountManager->checkAndSignalForAccessToken();
3232 }
3333
34+void AccountScriptingInterface::logOut() {
35+ auto accountManager = DependencyManager::get<AccountManager>();
36+ return accountManager->logout();
37+}
38+
3439 QString AccountScriptingInterface::getUsername() {
3540 auto accountManager = DependencyManager::get<AccountManager>();
3641 if (accountManager->isLoggedIn()) {