- Added a new CSRF token verification Middleware.

- Added a new ActionLog middleware to catch every modifying request and save the changes made and the user who did.
- Added a new RequestLog to catch every request made whenever required.
This commit is contained in:
Dave Mc Nicoll committed 2026-10-22 15:03:18 +00:00
1 parent 9571c6a462
commit 4b86ac9e82
42 files changed
+1331 -148

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace Lean\Api\Lib;
use Lean\Api\Factory\MessageFactoryInterface;
use Lean\LanguageHandler;
use Psr\Http\Message\ServerRequestInterface;
use Ulmus\Entity\EntityInterface;
class DeleteFormContext extends FormContext
{
public function valid(? EntityInterface $entity = null) : bool
{
if ( $entity === null ) {
$this->pushErrorMessage('lean.api.form.delete.error.entity');
}
return parent::valid();
}
}