mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-02 14:17:26 +02:00
Optimize order of throttling in 'resendConfirmationForColumnValue'
This commit is contained in:
@@ -840,8 +840,8 @@ final class Auth extends UserManager {
|
|||||||
throw new ConfirmationRequestNotFound();
|
throw new ConfirmationRequestNotFound();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->throttle([ 'resendConfirmation', $this->getIpAddress() ], 4, (60 * 60 * 24 * 7), 2);
|
|
||||||
$this->throttle([ 'resendConfirmation', 'userId', $latestAttempt['user_id'] ], 1, (60 * 60 * 6));
|
$this->throttle([ 'resendConfirmation', 'userId', $latestAttempt['user_id'] ], 1, (60 * 60 * 6));
|
||||||
|
$this->throttle([ 'resendConfirmation', $this->getIpAddress() ], 4, (60 * 60 * 24 * 7), 2);
|
||||||
|
|
||||||
$this->createConfirmationRequest(
|
$this->createConfirmationRequest(
|
||||||
$latestAttempt['user_id'],
|
$latestAttempt['user_id'],
|
||||||
|
Reference in New Issue
Block a user