From c425a003fdb347ff7e913e1ad310fd6e775df26a Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 13 Dec 2018 12:21:02 -0300 Subject: [PATCH] Bug 22048: Use set_password in memberentry.pl To test: - Verify that changing the password and userid of a patron by globally editing they works, Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- members/memberentry.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/members/memberentry.pl b/members/memberentry.pl index 600eff98a9..036c27e186 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -535,7 +535,8 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ # 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); -- 2.39.5