Skip to content

Commit

Permalink
Check Enterprise token login before password (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
donnemartin authored Nov 25, 2016
1 parent 1d9b6b3 commit d59948b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitsome/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ def authenticate_cached_credentials(self, config, parser,
'url': self.enterprise_url,
'verify': self.verify_ssl,
})
if self.user_pass is not None:
login_kwargs.update({'password': self.user_pass})
elif self.user_token is not None:
if self.user_token is not None:
login_kwargs.update({'token': self.user_token})
elif self.user_pass is not None:
login_kwargs.update({'password': self.user_pass})
else:
self.print_auth_error()
return
Expand Down

0 comments on commit d59948b

Please sign in to comment.