mirror of
https://github.com/strapi/strapi.git
synced 2025-08-28 10:45:51 +00:00
Remove platform check (#6546)
This commit is contained in:
parent
3e118da147
commit
ba6695a87c
@ -249,8 +249,7 @@ module.exports = {
|
|||||||
.get();
|
.get();
|
||||||
|
|
||||||
const [requestPath] = ctx.request.url.split('?');
|
const [requestPath] = ctx.request.url.split('?');
|
||||||
const provider =
|
const provider = requestPath.split('/')[2];
|
||||||
process.platform === 'win32' ? requestPath.split('\\')[2] : requestPath.split('/')[2];
|
|
||||||
|
|
||||||
if (!_.get(grantConfig[provider], 'enabled')) {
|
if (!_.get(grantConfig[provider], 'enabled')) {
|
||||||
return ctx.badRequest(null, 'This provider is disabled.');
|
return ctx.badRequest(null, 'This provider is disabled.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user