X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher%2FAuthHandler%2FAdmin.pm;h=06fd3cfe3c2991b42f831ddadf2788aef57ec1c6;hb=254ef1b288fe55a17d10468ba776b43661594269;hp=ebb4a4d3f9ec469fc1dd31df9cb5c9464bec7f83;hpb=77fda87530f85a6fd83061808c4ef3c983750a51;p=kivitendo-erp.git diff --git a/SL/Dispatcher/AuthHandler/Admin.pm b/SL/Dispatcher/AuthHandler/Admin.pm index ebb4a4d3f..06fd3cfe3 100644 --- a/SL/Dispatcher/AuthHandler/Admin.pm +++ b/SL/Dispatcher/AuthHandler/Admin.pm @@ -8,7 +8,7 @@ use SL::Layout::Dispatcher; sub handle { my ($self, %params) = @_; - %::myconfig = (); + %::myconfig = User->get_default_myconfig; my $ok = $::auth->is_api_token_cookie_valid; $ok ||= $::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::form->{'{AUTH}admin_password'}) == $::auth->OK()); @@ -23,7 +23,6 @@ sub handle { } $::request->{layout} = SL::Layout::Dispatcher->new(style => 'admin'); - $::request->layout->no_menu(1); $::auth->delete_session_value('admin_password'); $::auth->punish_wrong_login; SL::Dispatcher::show_error('admin/adminlogin', 'password');