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 = {
'username': data.username,
'userslug': data.userslug,
'email': data.email,
'email': data.email || '',
'joindate': timestamp,
'lastonline': timestamp,
'picture': '',

Loading…
Cancel
Save