mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: typo
This commit is contained in:
@@ -14,9 +14,9 @@ var loginStrategies = [];
|
|||||||
var Auth = module.exports;
|
var Auth = module.exports;
|
||||||
|
|
||||||
Auth.initialize = function (app, middleware) {
|
Auth.initialize = function (app, middleware) {
|
||||||
const passwortInitMiddleware = passport.initialize();
|
const passportInitMiddleware = passport.initialize();
|
||||||
app.use(function passportInitialize(req, res, next) {
|
app.use(function passportInitialize(req, res, next) {
|
||||||
passwortInitMiddleware(req, res, next);
|
passportInitMiddleware(req, res, next);
|
||||||
});
|
});
|
||||||
const passportSessionMiddleware = passport.session();
|
const passportSessionMiddleware = passport.session();
|
||||||
app.use(function passportSession(req, res, next) {
|
app.use(function passportSession(req, res, next) {
|
||||||
|
|||||||
Reference in New Issue
Block a user