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
31 return accountManager->checkAndSignalForAccessToken();31 return accountManager->checkAndSignalForAccessToken();
32}32}
33 33
34void AccountScriptingInterface::logOut() {
35 auto accountManager = DependencyManager::get<AccountManager>();
36 return accountManager->logout();
37}
38
34QString AccountScriptingInterface::getUsername() {39QString AccountScriptingInterface::getUsername() {
35 auto accountManager = DependencyManager::get<AccountManager>();40 auto accountManager = DependencyManager::get<AccountManager>();
36 if (accountManager->isLoggedIn()) {41 if (accountManager->isLoggedIn()) {