summaryrefslogtreecommitdiff
path: root/app/Validator/AuthValidator.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Validator/AuthValidator.php')
-rw-r--r--app/Validator/AuthValidator.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Validator/AuthValidator.php b/app/Validator/AuthValidator.php
index cd6e04d5..03ff6f22 100644
--- a/app/Validator/AuthValidator.php
+++ b/app/Validator/AuthValidator.php
@@ -9,10 +9,10 @@ use Gregwar\Captcha\CaptchaBuilder;
/**
* Authentication Validator
*
- * @package validator
+ * @package Kanboard\Validator
* @author Frederic Guillot
*/
-class AuthValidator extends Base
+class AuthValidator extends BaseValidator
{
/**
* Validate user login form
@@ -59,7 +59,7 @@ class AuthValidator extends Base
$result = true;
$errors = array();
- if ($this->userLocking->isLocked($values['username'])) {
+ if ($this->userLockingModel->isLocked($values['username'])) {
$result = false;
$errors['login'] = t('Your account is locked for %d minutes', BRUTEFORCE_LOCKDOWN_DURATION);
$this->logger->error('Account locked: '.$values['username']);
@@ -100,7 +100,7 @@ class AuthValidator extends Base
$result = true;
$errors = array();
- if ($this->userLocking->hasCaptcha($values['username'])) {
+ if ($this->userLockingModel->hasCaptcha($values['username'])) {
if (! isset($this->sessionStorage->captcha)) {
$result = false;
} else {