From ba4dc29ca5a62360483f3549e094fb1363209e9f Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 8 Nov 2017 20:23:34 +0100 Subject: [PATCH] Optimize order of throttling in 'resendConfirmationForColumnValue' --- src/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index c17175a..0860b9b 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -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'],