fix: correct login rate limiter key format to include IP address
This commit is contained in:
parent
f300ba0118
commit
65e5b2ecdb
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ public function boot(): void
|
|||
// 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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue