Lines 1774-1779
sub check_cookie_auth {
Link Here
|
1774 |
} elsif ( $userid ) { |
1774 |
} elsif ( $userid ) { |
1775 |
$session->param( 'lasttime', time() ); |
1775 |
$session->param( 'lasttime', time() ); |
1776 |
my $patron = Koha::Patrons->find({ userid => $userid }); |
1776 |
my $patron = Koha::Patrons->find({ userid => $userid }); |
|
|
1777 |
|
1778 |
# If the user modify their own userid |
1779 |
# Better than 500 but we could do better |
1780 |
unless ( $patron ) { |
1781 |
$session->delete(); |
1782 |
$session->flush; |
1783 |
return ("expired", undef); |
1784 |
} |
1785 |
|
1777 |
$patron = Koha::Patrons->find({ cardnumber => $userid }) |
1786 |
$patron = Koha::Patrons->find({ cardnumber => $userid }) |
1778 |
unless $patron; |
1787 |
unless $patron; |
1779 |
return ("password_expired", undef ) if $patron->password_expired; |
1788 |
return ("password_expired", undef ) if $patron->password_expired; |
1780 |
- |
|
|