token => scalar $input->param('csrf_token'),
});
- my $digest = Koha::AuthUtils::hash_password( scalar $input->param('newpassword') );
my $uid = $input->param('newuserid') || $bor->{userid};
+ my $password = $input->param('newpassword');
my $dbh = C4::Context->dbh;
- if ( Koha::Patrons->find( $member )->update_password($uid, $digest) ) {
+ if ( Koha::Patrons->find( $member )->update_password($uid, $password) ) {
$template->param( newpassword => $newpassword );
if ( $destination eq 'circ' ) {
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?findborrower=$cardnumber");
}
}
-if ( $category_type eq 'C') {
- my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']});
- $template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1;
- $template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1;
-}
-
-$template->param( adultborrower => 1 ) if ( $category_type =~ /^(A|I)$/ );
-
-$template->param( picture => 1 ) if $patron->image;
-
if ( C4::Context->preference('ExtendedPatronAttributes') ) {
my $attributes = GetBorrowerAttributes( $bor->{'borrowernumber'} );
$template->param(
$template->param(
patron => $patron,
destination => $destination,
- is_child => ( $category_type eq 'C' ),
csrf_token => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }),
);