Bug 40464 - Many parts of C4::Auth::checkauth() re-lookup the patron using userid/cardnumber unnecessarily
Summary: Many parts of C4::Auth::checkauth() re-lookup the patron using userid/cardnum...
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 40457
  Show dependency treegraph
 
Reported: 2025-07-22 00:37 UTC by David Cook
Modified: 2025-07-22 00:37 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2025-07-22 00:37:24 UTC
While bug 40275 introduces Koha::Patrons->find_by_identifier() into C4::Auth in one place in C4::Auth::checkpw(), C4::Auth::checkauth() needlessly looks up the borrower again (multiple times) even though we've already looked it up before.