From b6e1d9deb3aed2cadf467f34ba54e291de1928bf Mon Sep 17 00:00:00 2001 From: SylvainLap Date: Wed, 4 Nov 2015 17:58:26 +0100 Subject: [PATCH] remove passport hook --- lib/configuration/hooks/passport/index.js | 36 ----------------------- 1 file changed, 36 deletions(-) delete mode 100644 lib/configuration/hooks/passport/index.js diff --git a/lib/configuration/hooks/passport/index.js b/lib/configuration/hooks/passport/index.js deleted file mode 100644 index cb8fab5c6e..0000000000 --- a/lib/configuration/hooks/passport/index.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -/** - * Passport hook - */ - -module.exports = function (strapi) { - const hook = { - - /** - * Default options - */ - - defaults: { - passport: { - strategies: { - local: { - strategy: 'passport-local' - } - } - } - }, - - /** - * Initialize the hook - */ - - initialize: function (cb) { - strapi.app.use(strapi.middlewares.passport.initialize()); - - cb(); - } - }; - - return hook; -};