0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00

Merge pull request #854 from johannespfeiffer/patch-1

fix: Authentication Plugins / plugin[method] is not a function (add_user method)
This commit is contained in:
Juan Picado @jotadeveloper 2018-07-27 12:08:15 +02:00 committed by GitHub
commit 533ea45b70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ class Auth implements IAuth {
if (_.isFunction(plugin[method]) === false) { if (_.isFunction(plugin[method]) === false) {
method = 'add_user'; method = 'add_user';
} }
if (_.isFunction[method] === false) { if (_.isFunction(plugin[method]) === false) {
next(); next();
} else { } else {
// p.add_user() execution // p.add_user() execution