Skip to content

Commit

Permalink
Merge pull request #9 from onna/first-last-1x
Browse files Browse the repository at this point in the history
Support first/last name
  • Loading branch information
Ismael Alaoui authored Oct 4, 2018
2 parents 44753d9 + 099c3d2 commit 2689810
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
1.1.18 (unreleased)
1.1.18 (2018-10-04)
-------------------

- Nothing changed yet.

- Support first/last name (Ismael)

1.1.17 (2018-07-10)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.18.dev0
1.1.18
6 changes: 5 additions & 1 deletion guillotina_oauth/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,13 +479,17 @@ 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 2689810

Please sign in to comment.