1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-02 06:10:14 +02:00

Optimize order of throttling in 'resendConfirmationForColumnValue'

This commit is contained in:
Marco
2017-11-08 20:23:34 +01:00
parent 0a97f67515
commit ba4dc29ca5

View File

@@ -840,8 +840,8 @@ final class Auth extends UserManager {
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', $this->getIpAddress() ], 4, (60 * 60 * 24 * 7), 2);
$this->createConfirmationRequest(
$latestAttempt['user_id'],