mirror of
https://github.com/strapi/strapi.git
synced 2025-11-15 01:28:07 +00:00
Delete dashboardToken field
This commit is contained in:
parent
6bda3276a8
commit
aeee53530d
@ -18,6 +18,10 @@ module.exports = function * (next) {
|
|||||||
message: 'dashboardToken parameter is invalid.'
|
message: 'dashboardToken parameter is invalid.'
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
// Delete `dashboardToken` field.
|
||||||
|
delete this.request.query.dashboardToken;
|
||||||
|
delete this.request.body.dashboardToken;
|
||||||
|
|
||||||
yield next;
|
yield next;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user