diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8eaecd3..b65cd1f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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) ------------------- diff --git a/VERSION b/VERSION index ee3fc3d..852ed67 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.18.dev0 +1.1.18 diff --git a/guillotina_oauth/oauth.py b/guillotina_oauth/oauth.py index 22898a2..8bd380e 100644 --- a/guillotina_oauth/oauth.py +++ b/guillotina_oauth/oauth.py @@ -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,