Skip to content

Node.js based forum software built for the modern web

if email is undefined use empty string

barisusaklib9961bcffa17
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': '',