From: Sven Schöling Date: Wed, 20 Jan 2021 10:11:52 +0000 (+0100) Subject: Mobile Layout: Für mobile user das Mobile Layout forcieren X-Git-Tag: kivitendo-mebil_0.1-0~9^2~105 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7a7f9bce8beabfd6748cbbf903375b2aedffe88d;p=kivitendo-erp.git Mobile Layout: Für mobile user das Mobile Layout forcieren --- 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'}));