From 7a7f9bce8beabfd6748cbbf903375b2aedffe88d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 20 Jan 2021 11:11:52 +0100 Subject: [PATCH] =?utf8?q?Mobile=20Layout:=20F=C3=BCr=20mobile=20user=20da?= =?utf8?q?s=20Mobile=20Layout=20forcieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Dispatcher/AuthHandler/User.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SL/Dispatcher/AuthHandler/User.pm b/SL/Dispatcher/AuthHandler/User.pm index bd3d29e21..acdf29c5c 100644 --- a/SL/Dispatcher/AuthHandler/User.pm +++ b/SL/Dispatcher/AuthHandler/User.pm @@ -26,7 +26,9 @@ sub handle { return $self->_error(%param) unless $::myconfig{login}; $::locale = Locale->new($::myconfig{countrycode}); - $::request->{layout} = SL::Layout::Dispatcher->new(style => $::myconfig{menustyle}); + $::request->{layout} = $::request->is_mobile + ? SL::Layout::Dispatcher->new(style => 'mobile') + : SL::Layout::Dispatcher->new(style => $::myconfig{menustyle}); my $ok = $::auth->is_api_token_cookie_valid; $ok ||= $::form->{'{AUTH}login'} && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, $::form->{'{AUTH}password'})); -- 2.20.1