|
|
@ -337,7 +337,7 @@ passport.deserializeUser(function(uid, done) {
|
|
|
|
if(!req.user)
|
|
|
|
if(!req.user)
|
|
|
|
return res.redirect('/403');
|
|
|
|
return res.redirect('/403');
|
|
|
|
|
|
|
|
|
|
|
|
if(req.user.uid !== req.body.uid)
|
|
|
|
if(req.user.uid != req.body.uid)
|
|
|
|
return res.redirect('/');
|
|
|
|
return res.redirect('/');
|
|
|
|
|
|
|
|
|
|
|
|
user.updateUserFields(req.user.uid, req.body);
|
|
|
|
user.updateUserFields(req.user.uid, req.body);
|
|
|
|