From 60afaa588b0cf69012f37719e9689dea95deeb87 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sat, 19 Aug 2017 15:30:53 +0200 Subject: [PATCH] Remove ability to log in with env variables --- src/accountmanager.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/accountmanager.cpp b/src/accountmanager.cpp index 38d7e8917..256287ec4 100644 --- a/src/accountmanager.cpp +++ b/src/accountmanager.cpp @@ -22,15 +22,6 @@ inline QString getEnvString(const char *target) AccountManager::AccountManager() : twitchAnonymousUser("justinfan64537", "", "") { - QString envUsername = getEnvString("CHATTERINO2_USERNAME"); - QString envOauthToken = getEnvString("CHATTERINO2_OAUTH"); - - if (!envUsername.isEmpty() && !envOauthToken.isEmpty()) { - this->addTwitchUser(twitch::TwitchUser(envUsername, envOauthToken, "")); - } - - pajlada::Settings::Setting::set( - "/accounts/current/roomID", "11148817", pajlada::Settings::SettingOption::DoNotWriteToJSON); } void AccountManager::load() @@ -58,6 +49,8 @@ void AccountManager::load() twitch::TwitchUser user(qS(username), qS(oauthToken), qS(clientID)); this->addTwitchUser(user); + + printf("Adding user %s(%s)\n", username.c_str(), userID.c_str()); } }