From ffd24ebdbf2d1038d5047f1f1e069b5c6cd546db Mon Sep 17 00:00:00 2001 From: Alsotang Date: Wed, 25 Dec 2013 12:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20loginname=20=E7=9A=84?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F=E5=86=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/github.js | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/github.js b/controllers/github.js index 5582cf2..fbdcb25 100644 --- a/controllers/github.js +++ b/controllers/github.js @@ -43,6 +43,7 @@ exports.create = function (req, res, next) { res.redirect('/'); }); } else { // 关联老账号 + req.body.name = req.body.name.toLowerCase(); User.findOne({loginname: req.body.name, pass: md5(req.body.pass)}, function (err, user) { if (err) {