Bug 32739: (follow-up) QA Cleanup

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 3c90dbcb82)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2023-07-25 16:28:27 +01:00 committed by Pedro Amorim
parent 803f435196
commit a35a226306
1 changed files with 1 additions and 5 deletions

View File

@ -40,12 +40,8 @@ Controller method that checks a patron's password
sub validate {
my $c = shift->openapi->valid_input or return;
my $body = $c->validation->param('body');
my $userid = $body->{userid} // '';
my $patron = Koha::Patrons->find({ userid => $userid });
my $body = $c->req->json;
my $body = $c->req->json;
my $identifier = $body->{identifier};
my $userid = $body->{userid};