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>
This commit is contained in:
Martin Renvoize 2023-07-25 16:28:27 +01:00 committed by Tomas Cohen Arazi
parent 69653a281d
commit 3c90dbcb82
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
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->req->json;
my $userid = $body->{userid} // '';
my $patron = Koha::Patrons->find({ userid => $userid });
my $body = $c->req->json;
my $identifier = $body->{identifier};
my $userid = $body->{userid};