From 82a86a24a03639c483fb551b02bfce647a1bfdf3 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Tue, 25 Jul 2023 16:28:27 +0100
Subject: [PATCH] Bug 32739: (follow-up) QA Cleanup
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
---
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.41.0