From b9961bcffa1721856af6a9336aa9a9da7dba07ae Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 15 Aug 2016 19:08:08 +0300 Subject: [PATCH] if email is undefined use empty string --- src/user/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/create.js b/src/user/create.js index bd79270a93..df504c3da4 100644 --- a/src/user/create.js +++ b/src/user/create.js @@ -26,7 +26,7 @@ module.exports = function(User) { var userData = { 'username': data.username, 'userslug': data.userslug, - 'email': data.email, + 'email': data.email || '', 'joindate': timestamp, 'lastonline': timestamp, 'picture': '',