Bug 36598: Add comments asking to keep both CSRF checks in sync

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Julian Maurice 2024-05-14 09:34:31 +02:00 committed by Lucas Gass
parent 0c6ef38fb3
commit 460a48cf69
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,8 @@ this case, no verification is done.
=cut
# If you need to update the logic here, please also update Koha::Middleware::CSRF
sub register {
my ( $self, $app, $conf ) = @_;

View File

@ -20,6 +20,8 @@ use Modern::Perl;
use parent qw(Plack::Middleware);
use Plack::Response;
# If you need to update the logic here, please also update Koha::App::Plugin::CSRF
sub call {
my ( $self, $env ) = @_;
my $req = Plack::Request->new($env);