mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove ability to log in with env variables
This commit is contained in:
parent
3f8c025e64
commit
60afaa588b
1 changed files with 2 additions and 9 deletions
|
@ -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<std::string>::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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue