From 2ab94a0b8c9b080343b12a413eb794ea411a8d7f Mon Sep 17 00:00:00 2001 From: Ruben de Vos Date: Mon, 13 Jul 2020 12:17:09 +0200 Subject: [PATCH] Update Sentry.php Add IP address to the throttle check while logging in. This is now inline with the `Sentry::authenticate()` method and prevents account being marked as suspended or banned even when logging in from another IP. --- src/Cartalyst/Sentry/Sentry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cartalyst/Sentry/Sentry.php b/src/Cartalyst/Sentry/Sentry.php index c0c2e8c02..7a766778a 100644 --- a/src/Cartalyst/Sentry/Sentry.php +++ b/src/Cartalyst/Sentry/Sentry.php @@ -292,7 +292,7 @@ public function check() if( $this->getThrottleProvider()->isEnabled()) { // Check the throttle status - $throttle = $this->getThrottleProvider()->findByUser( $user ); + $throttle = $this->getThrottleProvider()->findByUser( $user , $this->ipAddress ); if( $throttle->isBanned() or $throttle->isSuspended()) {