X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=members%2Fmember-password.pl;h=d2255f8ddfb4f57042611842da6e312465fd9a95;hb=217d0df5175b4fbd907b747d3f29bf0a1d6d2c2b;hp=6f380812e2fb339ec22bcafc96bac1714892e494;hpb=cae4b980607be083e5e0fb163c4949c73d6347db;p=koha.git diff --git a/members/member-password.pl b/members/member-password.pl index 6f380812e2..d2255f8ddf 100755 --- a/members/member-password.pl +++ b/members/member-password.pl @@ -12,7 +12,6 @@ use Koha::AuthUtils; use C4::Output; use C4::Context; use C4::Members; -use C4::Branch; use C4::Circulation; use CGI qw ( -utf8 ); use C4::Members::Attributes qw(GetBorrowerAttributes); @@ -74,7 +73,7 @@ if ( $newpassword && !scalar(@errors) ) { token => scalar $input->param('csrf_token'), }); - my $digest = Koha::AuthUtils::hash_password( $input->param('newpassword') ); + my $digest = Koha::AuthUtils::hash_password( scalar $input->param('newpassword') ); my $uid = $input->param('newuserid') || $bor->{userid}; my $dbh = C4::Context->dbh; if ( Koha::Patrons->find( $member )->update_password($uid, $digest) ) { @@ -144,7 +143,6 @@ $template->param( email => $bor->{'email'}, emailpro => $bor->{'emailpro'}, branchcode => $bor->{'branchcode'}, - branchname => GetBranchName( $bor->{'branchcode'} ), userid => $bor->{'userid'}, destination => $destination, is_child => ( $bor->{'category_type'} eq 'C' ),