mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +01:00
check data.uid
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user