diff --git a/plugins/passport/passport.js b/plugins/passport/passport.js index ff7f4a6..02327f7 100644 --- a/plugins/passport/passport.js +++ b/plugins/passport/passport.js @@ -12,6 +12,7 @@ var PassportPlugin = function () { PluginApi.apply(this, arguments); this._install; this.conf = defaultConf; + if (this.options.authModel) this.conf.authModel = this.options.authModel.modelName; this.app.use(passport.initialize()); this.app.use(passport.session());