Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-plugin-freelog

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-freelog - npm Package Compare versions

Comparing version 0.0.25 to 0.0.26

12

index.js

@@ -36,3 +36,10 @@ const plugin = {};

plugin.overrideLogin = function() {
plugin.authValidate = async function(param) {
console.log('authValidate', param);
};
plugin.overrideLogin = function(req, username, password, next) {
if (username === 'admin') {
return next();
}
passport.use(new passportLocal({

@@ -44,5 +51,2 @@ passReqToCallback: true

plugin.login = function(req, username, password, next) {
if (username === 'admin') {
return next(null, null);
}
if (!username) {

@@ -49,0 +53,0 @@ return next(new Error('[[error:invalid-username]]'));

@@ -5,3 +5,3 @@ {

"description": "NodeBB Forum",
"version": "0.0.25",
"version": "0.0.26",
"homepage": "http://www.nodebb.org",

@@ -8,0 +8,0 @@ "repository": {

@@ -19,4 +19,8 @@ {

"method": "overrideLogin"
},
{
"hook": "static:auth.validate",
"method": "authValidate"
}
]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc