mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 19:36:08 +01:00
Fixed issue with login class reference
This commit is contained in:
@@ -16,7 +16,7 @@ dependencies:
|
||||
- { name: grav, version: '>=1.3.3' }
|
||||
- { name: form, version: '>=2.8.3' }
|
||||
- { name: email, version: '~2.0' }
|
||||
- { name: login, version: '~2.0' }
|
||||
- { name: login, version: '>=2.3.3' }
|
||||
|
||||
form:
|
||||
validation: loose
|
||||
|
||||
@@ -396,7 +396,7 @@ class Admin
|
||||
}
|
||||
|
||||
$user->authenticated = true;
|
||||
$this->login->resetRateLimits($user,'login_attempts');
|
||||
$login->resetRateLimit($user,'login_attempts');
|
||||
|
||||
if ($user->authorize('admin.login')) {
|
||||
$this->user = $this->session->user = $user;
|
||||
|
||||
Reference in New Issue
Block a user