From 57e755e6b0071868d485470dce31a0bdf130c2b5 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 --- 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 d082435a94..d5ea5c726f 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->req->json; - 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