mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
Merge branch 'auth-provider/update-user-models' of github.com:strapi/strapi into auth-provider/configs
This commit is contained in:
commit
fc22f13cfc
@ -0,0 +1,5 @@
|
||||
{
|
||||
"provider": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
@ -158,8 +158,9 @@ const mountMiddlewares = function (files, cwd) {
|
||||
return (resolve, reject) =>
|
||||
parallel(
|
||||
files.map(p => cb => {
|
||||
const name = p.replace(/^.\/node_modules\/strapi-middleware-/, './')
|
||||
.split('/')[1];
|
||||
const folders = p.replace(/^.\/node_modules\/strapi-middleware-/, './')
|
||||
.split('/');
|
||||
const name = folders[folders.length - 2];
|
||||
|
||||
this.middleware[name] = this.middleware[name] || {
|
||||
loaded: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user