if email is undefined use empty string

v1.18.x
barisusakli 9 years ago
parent 96abdb4b69
commit b9961bcffa

@ -26,7 +26,7 @@ module.exports = function(User) {
var userData = { var userData = {
'username': data.username, 'username': data.username,
'userslug': data.userslug, 'userslug': data.userslug,
'email': data.email, 'email': data.email || '',
'joindate': timestamp, 'joindate': timestamp,
'lastonline': timestamp, 'lastonline': timestamp,
'picture': '', 'picture': '',

Loading…
Cancel
Save