Skip to content

Commit

Permalink
Merge pull request #8 from onna/first-last-name
Browse files Browse the repository at this point in the history
Support first/last name in add_user
  • Loading branch information
Ismael Alaoui authored Oct 4, 2018
2 parents a10631d + 1d6ff5a commit 9de6d05
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.0.3 (2018-10-3)
-----------------

- Support first/last name in add_user [Ismael]


2.0.2 (2018-10-3)
-----------------

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.2
2.0.3
5 changes: 4 additions & 1 deletion guillotina_oauth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,16 @@ async def add_scope(self, scope, admin_user, urls=None):
f'{resp.status}: {text}', exc_info=True)

async def add_user(self, username, email, password, send_email=True,
reset_password=False, roles=None, data=None):
reset_password=False, roles=None, data=None, cn=None,
sn=None):
if data is None:
data = {}
request = get_current_request()
data = {
'user': username,
'email': email,
'cn': cn,
'sn': sn,
'password': password,
'service_token': await self.service_token,
'send-email': send_email,
Expand Down

0 comments on commit 9de6d05

Please sign in to comment.