[Koha-bugs] [Bug 27311] New: Don't pass borrowernumber to check_password plugin hook

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 29 12:25:45 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27311

            Bug ID: 27311
           Summary: Don't pass borrowernumber to check_password plugin
                    hook
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Plugin architecture
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: magnus at libriotech.no
        QA Contact: testopia at bugs.koha-community.org

check_password is implemented in two places:

1. In Koha::Patron::set_password
https://git.koha-community.org/Koha-community/Koha/src/branch/master/Koha/Patron.pm#L774

2. In Koha::Patron::store
https://git.koha-community.org/Koha-community/Koha/src/branch/master/Koha/Patron.pm#L167

The call to the plugin inside Koha::Patron::store comes before this line:

  $self = $self->SUPER::store;

which means there is not yet a borrowernumber to pass to the plugin, and this
never worked.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list