From dab8fbae6df73ccedd69b4fb32a3496d1120c082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 20 Dec 2017 13:34:27 +0100 Subject: [PATCH] create_new_user_document: allow passing the full name --- pillar/api/utils/authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/api/utils/authentication.py b/pillar/api/utils/authentication.py index 261c9eb5..30f4874d 100644 --- a/pillar/api/utils/authentication.py +++ b/pillar/api/utils/authentication.py @@ -264,13 +264,13 @@ def create_new_user(email, username, user_id): def create_new_user_document(email, user_id, username, provider='blender-id', - token=''): + token='', *, full_name=''): """Creates a new user document, without storing it in MongoDB. The token parameter is a password in case provider is "local". """ user_data = { - 'full_name': username, + 'full_name': full_name or username, 'username': username, 'email': email, 'auth': [{