diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 437bc8c..30ef92b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,9 @@ +2.0.3 (2018-10-3) +----------------- + +- Support first/last name in add_user [Ismael] + + 2.0.2 (2018-10-3) ----------------- diff --git a/VERSION b/VERSION index e9307ca..50ffc5a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.2 +2.0.3 diff --git a/guillotina_oauth/oauth.py b/guillotina_oauth/oauth.py index 8df8b02..a78430f 100644 --- a/guillotina_oauth/oauth.py +++ b/guillotina_oauth/oauth.py @@ -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,