Skip to content

Commit e7ec06e

Browse files
authored
Merge pull request #23 from haohany/develop
Keep user credentials
2 parents 742596e + 111785e commit e7ec06e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ox3apiclient/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def authorize_token(self, email=None, password=None):
182182
password = self._password
183183

184184
if not email or not password:
185-
self._email = self._password = None
186185
raise Exception('Missing email or password')
187186

188187
data = {
@@ -195,8 +194,6 @@ def authorize_token(self, email=None, password=None):
195194
if response.status_code != 200:
196195
raise OAuthException("OAuth login failed (%s) %s" % (response.status_code, response.content))
197196

198-
# Clear user credentials.
199-
self._email = self._password = None
200197
# set token verifier
201198
self._token['verifier'] = parse_qs(response.content)['oauth_verifier'][0]
202199

0 commit comments

Comments
 (0)