To test:
- Verify that changing the password and userid of a patron by globally
editing they works,
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
# which can happen if we're only editing the
# patron attributes or messaging preferences sections
- $patron->update_password($newdata{userid}, $newdata{password});
+ # should never raise an exception as password validity is checked above
+ $patron->set_password({ password => $newdata{password} });
if (C4::Context->preference('ExtendedPatronAttributes') and $input->param('setting_extended_patron_attributes')) {
C4::Members::Attributes::SetBorrowerAttributes($borrowernumber, $extended_patron_attributes);