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

(-)a/t/db_dependent/selenium/authentication.t (-2 / +2 lines)
Lines 47-54 SKIP: { Link Here
47
        $driver->get($mainpage);
47
        $driver->get($mainpage);
48
        like( $driver->get_title, qr(Log in to Koha), 'Hitting the main page should redirect to the login form');
48
        like( $driver->get_title, qr(Log in to Koha), 'Hitting the main page should redirect to the login form');
49
49
50
        my $password = Koha::AuthUtils::generate_password();
51
        my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { flags => 0 }});
50
        my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { flags => 0 }});
51
        my $password = Koha::AuthUtils::generate_password($patron->category);
52
        t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
52
        t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
53
        $patron->set_password({ password => $password });
53
        $patron->set_password({ password => $password });
54
54
Lines 81-88 SKIP: { Link Here
81
        $driver->get($mainpage);
81
        $driver->get($mainpage);
82
        like( $driver->get_title, qr(Koha online catalog), 'Hitting the main page should not redirect to the login form');
82
        like( $driver->get_title, qr(Koha online catalog), 'Hitting the main page should not redirect to the login form');
83
83
84
        my $password = Koha::AuthUtils::generate_password();
85
        my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { flags => 0 }});
84
        my $patron = $builder->build_object({ class => 'Koha::Patrons', value => { flags => 0 }});
85
        my $password = Koha::AuthUtils::generate_password($patron->category);
86
        t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
86
        t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
87
        $patron->set_password({ password => $password });
87
        $patron->set_password({ password => $password });
88
88
(-)a/t/db_dependent/selenium/regressions.t (-3 / +2 lines)
Lines 54-60 subtest 'OPAC - borrowernumber and branchcode as html attributes' => sub { Link Here
54
54
55
    my $patron = $builder->build_object(
55
    my $patron = $builder->build_object(
56
        { class => 'Koha::Patrons', value => { flags => 1 } } );
56
        { class => 'Koha::Patrons', value => { flags => 1 } } );
57
    my $password = Koha::AuthUtils::generate_password();
57
    my $password = Koha::AuthUtils::generate_password($patron->category);
58
    t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
58
    t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
59
    $patron->set_password({ password => $password });
59
    $patron->set_password({ password => $password });
60
    $s->opac_auth( $patron->userid, $password );
60
    $s->opac_auth( $patron->userid, $password );
Lines 205-211 subtest 'XSS vulnerabilities in pagination' => sub { Link Here
205
        );
205
        );
206
    }
206
    }
207
207
208
    my $password = Koha::AuthUtils::generate_password();
208
    my $password = Koha::AuthUtils::generate_password($patron->category);
209
    t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
209
    t::lib::Mocks::mock_preference( 'RequireStrongPassword', 0 );
210
    $patron->set_password({ password => $password });
210
    $patron->set_password({ password => $password });
211
    $s->opac_auth( $patron->userid, $password );
211
    $s->opac_auth( $patron->userid, $password );
212
- 

Return to bug 23816