mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix: correct login rate limiter key format to include IP address
This commit is contained in:
1 parent
f300ba0118
commit
65e5b2ecdb
1 file changed
+1
-1
@@ -139,7 +139,7 @@ class FortifyServiceProvider extends ServiceProvider
|
||||
// server('REMOTE_ADDR') gives the actual connecting IP before proxy headers
|
||||
$realIp = $request->server('REMOTE_ADDR') ?? $request->ip();
|
||||
|
||||
return Limit::perMinute(5)->by($email.$realIp);
|
||||
return Limit::perMinute(5)->by($email.'|'.$realIp);
|
||||
});
|
||||
|
||||
RateLimiter::for('two-factor', function (Request $request) {
|
||||
|
||||
Reference in new issue
Block a user