1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00

allow sending edit key as header

This commit is contained in:
Robin Appelman 2025-05-03 15:33:10 +02:00
commit 1593435254
2 changed files with 9 additions and 1 deletions

View file

@ -147,7 +147,7 @@ class DemoController extends BaseController {
$backend = $this->post('backend', '');
$path = $this->post('path', '');
$url = $this->post('url', '');
$editKey = $this->post('key', '');
$editKey = $this->getEditKey();
if ($editKey !== $this->editKey || '' === $editKey) {
throw new InvalidKeyException('Invalid key');
}