From 3876a88252d2e72f13bfef62949f4df03e5e1e10 Mon Sep 17 00:00:00 2001 From: husseinwalli Date: Mon, 27 Mar 2017 11:05:06 -0700 Subject: [PATCH] Added additional parameters to user creation method (#5496) Treating picture, location and birthday similar to data.email as optional parameters to be passed to the create a user --- src/user/create.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/user/create.js b/src/user/create.js index 71034c1771..7d5e56f96f 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -28,10 +28,10 @@ module.exports = function (User) { email: data.email || '', joindate: timestamp, lastonline: timestamp, - picture: '', + picture: data.picture || '', fullname: data.fullname || '', - location: '', - birthday: '', + location: data.location || '', + birthday: data.birthday || '', website: '', signature: '', uploadedpicture: '',