Merge branch 'master' of github.com:psychobunny/node-forum

v1.18.x
Julian Lam 12 years ago
commit 3709150911

@ -76,7 +76,7 @@
$(document).ready(function(){ $(document).ready(function(){
$('#submitBtn').on('click',function(){ $('#submitBtn').on('click',function(){
alert('click');
var userData = { var userData = {
uid:$('#inputUID').val(), uid:$('#inputUID').val(),
email:$('#inputEmail').val(), email:$('#inputEmail').val(),
@ -89,7 +89,7 @@
$.post('/edituser', $.post('/edituser',
userData, userData,
function(data) { function(data) {
alert('fail');
} }
); );

@ -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);

Loading…
Cancel
Save