From a35a22630693fdf7ef3fb7f659608588faaf21ef Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 25 Jul 2023 16:28:27 +0100 Subject: [PATCH] Bug 32739: (follow-up) QA Cleanup Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 3c90dbcb82e16bee63cda729a0db4c94d8d8a78f) Signed-off-by: Fridolin Somers Signed-off-by: Pedro Amorim --- Koha/REST/V1/Auth/Password.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Koha/REST/V1/Auth/Password.pm b/Koha/REST/V1/Auth/Password.pm index b87ad4f16a..09dc1a0992 100644 --- a/Koha/REST/V1/Auth/Password.pm +++ b/Koha/REST/V1/Auth/Password.pm @@ -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}; -- 2.39.5