mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-16 03:28:09 +01:00
Fix redirect after failed login
This commit is contained in:
@@ -365,7 +365,7 @@ class Admin
|
||||
|
||||
$userKey = isset($credentials['username']) ? (string)$credentials['username'] : '';
|
||||
$ipKey = Uri::ip();
|
||||
$redirect = $this->base . $this->route;
|
||||
$redirect = isset($post['redirect']) ? $post['redirect'] : $this->base . $this->route;
|
||||
|
||||
// Check if the current IP has been used in failed login attempts.
|
||||
$attempts = count($rateLimiter->getAttempts($ipKey, 'ip'));
|
||||
|
||||
Reference in New Issue
Block a user