Bug 40464

Summary: Many parts of C4::Auth::checkauth() re-lookup the patron using userid/cardnumber unnecessarily
Product: Koha Reporter: David Cook <dcook>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 40457    

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.