History

Allow javascript to safely open the correct login window (or answer that it is unneded).

howard-stearns committed 10 years ago

Commit 4492c4e1 parent 5e8722c2 files · +6 −0Browse files

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

Unified · Split

interface/src/scripting/AccountScriptingInterface.cpp+5−0
@@ -26,6 +26,11 @@ bool AccountScriptingInterface::isLoggedIn() { · 25 unmodified lines
26 return accountManager->isLoggedIn();26 return accountManager->isLoggedIn();
27}27}
28 28
29bool AccountScriptingInterface::checkAndSignalForAccessToken() {
30 auto accountManager = DependencyManager::get<AccountManager>();
31 return accountManager->checkAndSignalForAccessToken();
32}
33
29QString AccountScriptingInterface::getUsername() {34QString AccountScriptingInterface::getUsername() {
30 auto accountManager = DependencyManager::get<AccountManager>();35 auto accountManager = DependencyManager::get<AccountManager>();
31 if (accountManager->isLoggedIn()) {36 if (accountManager->isLoggedIn()) {