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

(-)a/t/db_dependent/api/v1/password_validation.t (-2 / +6 lines)
Lines 116-122 subtest 'password validation - unauthenticated user' => sub { Link Here
116
116
117
subtest 'Password validation - authorized requests tests' => sub {
117
subtest 'Password validation - authorized requests tests' => sub {
118
118
119
    plan tests => 24;
119
    plan tests => 27;
120
120
121
    $schema->storage->txn_begin;
121
    $schema->storage->txn_begin;
122
122
Lines 184-189 subtest 'Password validation - authorized requests tests' => sub { Link Here
184
        ->json_is(
184
        ->json_is(
185
        { cardnumber => $librarian->cardnumber, patron_id => $librarian->id, userid => $librarian->userid } );
185
        { cardnumber => $librarian->cardnumber, patron_id => $librarian->id, userid => $librarian->userid } );
186
186
187
    $t->post_ok(
188
        "//$userid:$password@/api/v1/auth/password/validation" => { 'x-koha-embed' => 'patron' } => json => $json )
189
        ->status_is( 201, 'Validating using the `userid` attribute works, x-koha-embed too' )
190
        ->json_is( '/patron/patron_id' => $librarian->id );
191
187
    $json = {
192
    $json = {
188
        password => $password,
193
        password => $password,
189
        userid   => $librarian->cardnumber,
194
        userid   => $librarian->cardnumber,
190
- 

Return to bug 40023