check data.uid

v1.18.x
Barış Soner Uşaklı 8 years ago
parent e4714a0c58
commit a8c649cca6

@ -82,7 +82,7 @@ authenticationController.register = function (req, res) {
return res.status(400).send(err.message);
}
if (req.body.userLang) {
if (data.uid && req.body.userLang) {
user.setSetting(data.uid, 'userLang', req.body.userLang);
}

Loading…
Cancel
Save