Lines 2058-2067
sub checkpw {
Link Here
|
2058 |
if ($patron) { |
2058 |
if ($patron) { |
2059 |
if ($passwd_ok) { |
2059 |
if ($passwd_ok) { |
2060 |
$patron->update( { login_attempts => 0 } ); |
2060 |
$patron->update( { login_attempts => 0 } ); |
2061 |
if ( $patron->password_expired ) { |
|
|
2062 |
@return = ( -2, $patron ); |
2063 |
} |
2064 |
if ( $patron->borrowernumber eq $anonymous_patron ) { |
2061 |
if ( $patron->borrowernumber eq $anonymous_patron ) { |
|
|
2062 |
@return = ( -3, $patron ); |
2063 |
} |
2064 |
elsif ( $patron->password_expired ) { |
2065 |
@return = ( -2, $patron ); |
2065 |
@return = ( -2, $patron ); |
2066 |
} |
2066 |
} |
2067 |
} elsif ( !$patron->account_locked ) { |
2067 |
} elsif ( !$patron->account_locked ) { |
2068 |
- |
|
|