Bug 17428: [REST] Cities swagger specification
[koha.git] / members / member-password.pl
index 6f38081..d2255f8 100755 (executable)
@@ -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' ),