diff options
Diffstat (limited to 'plugins/Login/Login.php')
-rw-r--r-- | plugins/Login/Login.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Login/Login.php b/plugins/Login/Login.php index 2bf97938ff..55e3236e71 100644 --- a/plugins/Login/Login.php +++ b/plugins/Login/Login.php @@ -14,8 +14,8 @@ use Piwik\Common; use Piwik\Config; use Piwik\Container\StaticContainer; use Piwik\FrontController; -use Piwik\Http\HttpCodeException; use Piwik\IP; +use Piwik\NoAccessException; use Piwik\Piwik; use Piwik\Plugins\Login\Security\BruteForceDetection; use Piwik\Session; @@ -153,7 +153,7 @@ class Login extends \Piwik\Plugin /** @var BruteForceDetection $bruteForce */ $bruteForce = StaticContainer::get('Piwik\Plugins\Login\Security\BruteForceDetection'); if (!$this->hasPerformedBruteForceCheckForUserPwdLogin && $bruteForce->isEnabled() && $bruteForce->isUserLoginBlocked($login)) { - $ex = new HttpCodeException(Piwik::translate('Login_LoginNotAllowedBecauseUserLoginBlocked'), 403); + $ex = new NoAccessException(Piwik::translate('Login_LoginNotAllowedBecauseUserLoginBlocked'), 403); throw $ex; } // for performance reasons we make sure to execute it only once per request |