From c3fbabb5871f86da00b6c30ca1218d0de2339e61 Mon Sep 17 00:00:00 2001 From: LaHiRu Date: Thu, 23 Jan 2025 19:50:46 +0530 Subject: [PATCH 1/2] Update README.md --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 092effc..0c44f3a 100644 --- a/README.md +++ b/README.md @@ -11,14 +11,18 @@ Laravel nova in-dashboard 2FA security feature. ## Versions +Use v3.* for Laravel Nova 5 +Use v2.* for Laravel Nova 4 -Use v2.0.0 for Laravel Nova 4 - -Use ^v1.0.0 for Laravel Nova 3 +Use ^v1.* for Laravel Nova 3 ``` +\\ Nova 5 + +composer require visanduma/nova-two-factor:~3 + \\ Nova 4 composer require visanduma/nova-two-factor:~2 @@ -32,6 +36,10 @@ composer require visanduma/nova-two-factor:~1 ## What's New + +### v3.0 +- Nova 5.0 support + ### v2.2.14 - Fixed offline QRCode display issue From fe86629bfac29b4c232b597a3813dccc1125c773 Mon Sep 17 00:00:00 2001 From: Adam Privette Date: Wed, 15 Oct 2025 14:31:00 -0400 Subject: [PATCH 2/2] Add 60 second timer to rate limit hits --- src/Http/Controller/TwoFactorController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controller/TwoFactorController.php b/src/Http/Controller/TwoFactorController.php index 27c0de7..09db1b1 100644 --- a/src/Http/Controller/TwoFactorController.php +++ b/src/Http/Controller/TwoFactorController.php @@ -156,7 +156,7 @@ public function authenticate(Request $request) return back()->withErrors([__('Too many attempts!')]); } - RateLimiter::hit($throttleKey); + RateLimiter::hit($throttleKey, 60); } $authenticator = app(TwoFaAuthenticator::class)->boot(request());