Auth: fehlerhafte JSON-Requests mit JSON und richtigem HTTP-Response-Code beantworten
[kivitendo-erp.git] / SL / Dispatcher / AuthHandler / User.pm
index 182d654..3748dc1 100644 (file)
@@ -46,9 +46,8 @@ sub _error {
   my $self = shift;
 
   $::auth->punish_wrong_login;
+  $::dispatcher->handle_login_error(error => 'password');
 
-  require SL::Controller::Base;
-  SL::Controller::Base->new->redirect_to('controller.pl?action=LoginScreen/user_login&error=password');
   return 0;
 }