From 5eeb421df81cfb81161366c1f995a9cf7fe6f4f3 Mon Sep 17 00:00:00 2001 From: konekoneko Date: Mon, 6 May 2013 16:11:05 +0900 Subject: [PATCH] =?utf8?q?=E3=83=91=E3=82=B9=E3=83=AF=E3=83=BC=E3=83=89?= =?utf8?q?=E3=81=8C=E7=84=A1=E6=9D=A1=E4=BB=B6=E3=81=A7=E6=9B=B4=E6=96=B0?= =?utf8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=97=E3=81=BE=E3=81=86=E3=83=90?= =?utf8?q?=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.js b/profile.js index f6c8985..9b0a61c 100644 --- a/profile.js +++ b/profile.js @@ -201,7 +201,7 @@ function edit_postproc(req, res) } async.waterfall([ function(cb){ - if(req.body.updatepassword == false) + if(typeof(req.body.updatepassword) == "undefined") collection.UpdatAsync(req.body.name,req.body,null,cb); else collection.UpdatAsync(req.body.name,req.body,req.body.password,cb); -- 2.11.0