Fix colliding vars.
This commit is contained in:
parent
3561ad1fa6
commit
e2ab871e12
1 changed files with 2 additions and 2 deletions
|
@ -156,11 +156,11 @@ func (s *Session) Login(email, password string) (token string, err error) {
|
|||
|
||||
// LoginWithToken will verify a login token, or return a new one if it is invalid.
|
||||
// This is the preferred way to login, as it uses less rate limiting quota.
|
||||
func (s *Session) LoginWithToken(email, password, token string) (token string, err error) {
|
||||
func (s *Session) LoginWithToken(email, password, token string) (newToken string, err error) {
|
||||
|
||||
old := s.Token
|
||||
s.Token = token
|
||||
token, err = s.Login(email, password)
|
||||
newToken, err = s.Login(email, password)
|
||||
s.Token = old
|
||||
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue