mirror of
https://github.com/cnodejs/nodeclub.git
synced 2025-12-08 19:55:55 +00:00
修复 loginname 的大小写问题
This commit is contained in:
parent
92466b5519
commit
ffd24ebdbf
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user