nodebb-plugin-freelog
Advanced tools
Comparing version 0.0.26 to 0.0.27
@@ -41,5 +41,2 @@ const plugin = {}; | ||
plugin.overrideLogin = function(req, username, password, next) { | ||
if (username === 'admin') { | ||
return next(); | ||
} | ||
passport.use(new passportLocal({ | ||
@@ -100,2 +97,7 @@ passReqToCallback: true | ||
}); | ||
}, function(nodebbUserInfo, callback) { | ||
User.isAdministrator(nodebbUserInfo.uid).then(isAdmin => { | ||
nodebbUserInfo.isAdmin = isAdmin; | ||
callback(null, nodebbUserInfo); | ||
}).catch(error => callback(error)); | ||
} | ||
@@ -102,0 +104,0 @@ ], function(error, result) { |
@@ -5,3 +5,3 @@ { | ||
"description": "NodeBB Forum", | ||
"version": "0.0.26", | ||
"version": "0.0.27", | ||
"homepage": "http://www.nodebb.org", | ||
@@ -8,0 +8,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5629
128