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