added config option for password
This commit is contained in:
@@ -127,12 +127,12 @@ func (d *DemoMatchLoader) connectToSteam() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *DemoMatchLoader) Setup(username string, authCode string) error {
|
||||
func (d *DemoMatchLoader) Setup(username string, password string, authCode string) error {
|
||||
d.steamLogin = new(steam.LogOnDetails)
|
||||
d.steamLogin.Username = username
|
||||
d.steamLogin.Password = os.Getenv("STEAM_PASSWORD")
|
||||
d.steamLogin.ShouldRememberPassword = true
|
||||
d.steamLogin.Password = password
|
||||
d.steamLogin.AuthCode = authCode
|
||||
d.steamLogin.ShouldRememberPassword = true
|
||||
|
||||
if _, err := os.Stat(SENTRYFILE); err == nil {
|
||||
hash, err := ioutil.ReadFile(SENTRYFILE)
|
||||
|
Reference in New Issue
Block a user