From d3cfa206ad33baa4726c3359580f6e1b317f1d0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Mon, 7 Oct 2019 15:25:55 +0200 Subject: [PATCH] LoginScreen: Request beenden, wenn Benutzer nicht authentifiziert wird --- SL/Controller/LoginScreen.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Controller/LoginScreen.pm b/SL/Controller/LoginScreen.pm index 673c6b43c..6d59a9933 100644 --- a/SL/Controller/LoginScreen.pm +++ b/SL/Controller/LoginScreen.pm @@ -58,7 +58,9 @@ sub action_login { %::myconfig = $login ? $::auth->read_user(login => $login) : (); $::locale = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode}; - SL::Dispatcher::AuthHandler::User->new->handle; + my $auth_result = SL::Dispatcher::AuthHandler::User->new->handle; + + $::dispatcher->end_request unless $auth_result; $::request->layout(SL::Layout::Dispatcher->new(style => $::myconfig{menustyle})); -- 2.20.1