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:
parent
9595b7f6f5
commit
1593435254
2 changed files with 9 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue