minor var renaming

v1.18.x
Julian Lam 12 years ago
parent 24c235e360
commit 10a42d4e08

@ -6,7 +6,7 @@
passportFacebook = require('passport-facebook').Strategy, passportFacebook = require('passport-facebook').Strategy,
login_strategies = [], login_strategies = [],
nconf = require('nconf'), nconf = require('nconf'),
user_module = require('./../user.js'), users = require('../user'),
login_module = require('./../login.js'); login_module = require('./../login.js');
passport.use(new passportLocal(function(user, password, next) { passport.use(new passportLocal(function(user, password, next) {
@ -134,7 +134,7 @@
}); });
app.post('/register', function(req, res) { app.post('/register', function(req, res) {
user_module.create(req.body.username, req.body.password, req.body.email, function(err, uid) { users.create(req.body.username, req.body.password, req.body.email, function(err, uid) {
if (err === null && uid > 0) { if (err === null && uid > 0) {
req.login({ req.login({

Loading…
Cancel
Save