mirror of
https://github.com/strapi/strapi.git
synced 2025-10-27 08:02:56 +00:00
remove passport hook
This commit is contained in:
parent
9359582a8d
commit
b6e1d9deb3
@ -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;
|
|
||||||
};
|
|
||||||
Loading…
x
Reference in New Issue
Block a user