Skip to content

Commit

Permalink
Added TwoFactorCode to LogOnDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
looterz committed Apr 28, 2016
1 parent 0ad0b8f commit bc3a0ce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gsbot/gsbot.go
Original file line number Diff line number Diff line change
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,7 +81,7 @@ func (a *Auth) LogOn(details *LogOnDetails) {
Password: details.Password,
SentryFileHash: sentry,
AuthCode: details.AuthCode,
TwoFactorCode: details.AuthCode,
TwoFactorCode: details.TwoFactorCode,
})
}

Expand Down

0 comments on commit bc3a0ce

Please sign in to comment.