Lines 90-105
if ( $query->param('sendEmail') || $query->param('resendEmail') ) {
Link Here
|
90 |
} |
90 |
} |
91 |
|
91 |
|
92 |
# Check if a password reset already issued for this borrower AND we are not asking for a new email |
92 |
# Check if a password reset already issued for this borrower AND we are not asking for a new email |
93 |
elsif ( ValidateBorrowernumber( $borrower->borrowernumber ) |
93 |
elsif ( not $query->param('resendEmail') ) { |
94 |
&& !$query->param('resendEmail') ) |
94 |
if ( ValidateBorrowernumber( $borrower->borrowernumber ) ) { |
95 |
{ |
95 |
$hasError = 1; |
96 |
$hasError = 1; |
96 |
$errAlreadyStartRecovery = 1; |
97 |
$errAlreadyStartRecovery = 1; |
97 |
} |
98 |
} |
98 |
else { |
99 |
elsif ( !ValidateBorrowernumber($borrower->borrowernumber) |
99 |
DeleteExpiredPasswordRecovery( $borrower->borrowernumber ); |
100 |
&& !$query->param('resendEmail') ) |
100 |
} |
101 |
{ |
|
|
102 |
DeleteExpiredPasswordRecovery($borrower->borrowernumber); |
103 |
} |
101 |
} |
104 |
} |
102 |
} |
105 |
else { # 0 matching borrower |
103 |
else { # 0 matching borrower |
106 |
- |
|
|