Skip to content

Commit

Permalink
returning username should not scrub out the username
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Apr 21, 2021
1 parent 5ab3fd7 commit 37c841d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions apollo/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ def get(self, client_method, get_params, is_json=True):
@classmethod
def _scrub_data(cls, data):
"""Remove sensitive attributes from response data"""
if 'username' in data:
del data['username']
# the username can be returned in the operation
# if 'username' in data:
# del data['username']
if 'password' in data:
del data['password']
return data
2 changes: 1 addition & 1 deletion arrow/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '4.2.11'
__version__ = '4.2.12'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

setup(
name="apollo",
version='4.2.11',
version='4.2.12',
description="Apollo API library",
long_description=readme,
author="Helena Rasche;Anthony Bretaudeau;Nathan Dunn",
Expand Down
1 change: 1 addition & 0 deletions test/user_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def test_create_user(self):

meta = {"bla": "bli"}
res = wa.users.create_user("[email protected]", 'Poutrelle', 'Lapinou', 'superpassword', role="user", metadata=meta)
assert res['username'] == '[email protected]'
self.waitUserCreated(res['userId'])

res = wa.users.show_user('[email protected]')
Expand Down

0 comments on commit 37c841d

Please sign in to comment.