1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-21 07:29:37 +01: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

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