From 23acb66cc785fcc803204421d6ed9684dcdc32cb Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 8 Nov 2017 20:38:16 +0100 Subject: [PATCH] Reduce permitted frequency of requests to change one's email address --- src/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth.php b/src/Auth.php index 0860b9b..4d742a2 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -754,7 +754,7 @@ final class Auth extends UserManager { } $this->throttle([ 'requestEmailChange', $this->getIpAddress() ], 1, (60 * 60 * 24), 3); - $this->throttle([ 'requestEmailChange', 'user', $this->getUserId() ], 1, (60 * 60 * 24), 3); + $this->throttle([ 'requestEmailChange', 'userId', $this->getUserId() ], 1, (60 * 60 * 24)); $this->createConfirmationRequest($this->getUserId(), $newEmail, $callback); }