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

(-)a/C4/Auth.pm (-4 / +1 lines)
Lines 1942-1948 sub check_cookie_auth { Link Here
1942
1942
1943
        } elsif ($userid) {
1943
        } elsif ($userid) {
1944
            $session->param( 'lasttime', time() );
1944
            $session->param( 'lasttime', time() );
1945
            my $patron = Koha::Patrons->find( { userid => $userid } );
1945
            my $patron = Koha::Patrons->find_by_identifier($userid);
1946
1946
1947
            # If the user modify their own userid
1947
            # If the user modify their own userid
1948
            # Better than 500 but we could do better
1948
            # Better than 500 but we could do better
Lines 1952-1959 sub check_cookie_auth { Link Here
1952
                return ( "expired", undef );
1952
                return ( "expired", undef );
1953
            }
1953
            }
1954
1954
1955
            $patron = Koha::Patrons->find( { cardnumber => $userid } )
1956
                unless $patron;
1957
            return ( "password_expired", undef ) if $patron->password_expired;
1955
            return ( "password_expired", undef ) if $patron->password_expired;
1958
            my $flags = defined($flagsrequired) ? haspermission( $userid, $flagsrequired ) : 1;
1956
            my $flags = defined($flagsrequired) ? haspermission( $userid, $flagsrequired ) : 1;
1959
            if ($flags) {
1957
            if ($flags) {
1960
- 

Return to bug 40275