Skip to content

Commit

Permalink
Merge pull request #80 from looterz/authfix
Browse files Browse the repository at this point in the history
Fixed gsbot authentication not working when steamguard is enabled.
  • Loading branch information
Philipp15b committed Oct 20, 2016
2 parents 20a7733 + bc3a0ce commit e0f3bb9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gsbot/gsbot.go
Expand Up @@ -62,9 +62,10 @@ func NewAuth(bot *GsBot, details *LogOnDetails, sentryPath string) *Auth {
}

type LogOnDetails struct {
Username string
Password string
AuthCode string
Username string
Password string
AuthCode string
TwoFactorCode string
}

// This is called automatically after every ConnectedEvent, but must be called once again manually
Expand All @@ -80,6 +81,7 @@ func (a *Auth) LogOn(details *LogOnDetails) {
Password: details.Password,
SentryFileHash: sentry,
AuthCode: details.AuthCode,
TwoFactorCode: details.TwoFactorCode,
})
}

Expand Down

0 comments on commit e0f3bb9

Please sign in to comment.