View | Details | Raw Unified | Return to bug 22061
Collapse All | Expand All

(-)a/Koha/REST/V1/Patrons/Password.pm (-1 / +1 lines)
Lines 121-127 sub set_public { Link Here
121
        }
121
        }
122
122
123
        ## Change password
123
        ## Change password
124
        $user->set_password($password);
124
        $user->set_password({ password => $password });
125
125
126
        return $c->render( status => 200, openapi => "" );
126
        return $c->render( status => 200, openapi => "" );
127
    }
127
    }
(-)a/t/db_dependent/api/v1/patrons_password.t (-2 / +1 lines)
Lines 160-166 subtest 'set_public() (unprivileged user tests)' => sub { Link Here
160
    t::lib::Mocks::mock_preference( 'OpacPasswordChange', 1 );
160
    t::lib::Mocks::mock_preference( 'OpacPasswordChange', 1 );
161
161
162
    my $password = 'holapassword';
162
    my $password = 'holapassword';
163
    $patron->set_password( $password );
163
    $patron->set_password({ password => $password });
164
    $tx = $t->ua->build_tx(
164
    $tx = $t->ua->build_tx(
165
              POST => "/api/v1/public/patrons/"
165
              POST => "/api/v1/public/patrons/"
166
            . $other_patron->id
166
            . $other_patron->id
167
- 

Return to bug 22061