X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FLoginScreen.pm;h=89f21ccfadd169c0c12ed022f0057bc581f99848;hb=fc41222c61dbee590005f04c50e8603581462543;hp=c15cf3ea8f9d4b8c3e1a0d9d8e7c848cc4aaef0a;hpb=3ab26ffcd0c8bfbf08508624c9ea07fbc6b4352a;p=kivitendo-erp.git diff --git a/SL/Controller/LoginScreen.pm b/SL/Controller/LoginScreen.pm index c15cf3ea8..89f21ccfa 100644 --- a/SL/Controller/LoginScreen.pm +++ b/SL/Controller/LoginScreen.pm @@ -7,6 +7,7 @@ use parent qw(SL::Controller::Base); use SL::Dispatcher::AuthHandler::User; use SL::User; +__PACKAGE__->run_before('set_layout'); # # actions # @@ -38,6 +39,7 @@ sub action_login { $::form->{login} = $::myconfig{login}; $::locale = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode}; my $user = User->new(login => $::myconfig{login}); + $::request->{layout} = SL::Layout::Dispatcher->new(style => $user->{menustyle}); # if we get an error back, bale out my $result = $user->login($::form); @@ -115,4 +117,8 @@ sub error_state { }->{$_[0]}; } +sub set_layout { + $::request->{layout} = SL::Layout::Dispatcher->new(style => 'login'); +} + 1;