X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher%2FAuthHandler%2FAdmin.pm;h=2e41ee90e53d3a87b3d9bf7e915549fb1ab9a8c6;hb=98ccfccb26e831dd0a12dcae229eabb33744ed8b;hp=86efbb2dc79593aa1b66a74af935f9859f3c347a;hpb=4a12c839937370488b8b8a40bef376e7cb0a2ce6;p=kivitendo-erp.git diff --git a/SL/Dispatcher/AuthHandler/Admin.pm b/SL/Dispatcher/AuthHandler/Admin.pm index 86efbb2dc..2e41ee90e 100644 --- a/SL/Dispatcher/AuthHandler/Admin.pm +++ b/SL/Dispatcher/AuthHandler/Admin.pm @@ -3,7 +3,7 @@ package SL::Dispatcher::AuthHandler::Admin; use strict; use parent qw(Rose::Object); -use SL::Controller::Layout; +use SL::Layout::Dispatcher; sub handle { %::myconfig = (); @@ -11,7 +11,7 @@ sub handle { return if $::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::form->{'{AUTH}admin_password'}) == $::auth->OK()); return if !$::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::auth->get_session_value('admin_password')) == $::auth->OK()); - $::request->{layout} = SL::Controller::Layout->new(style => 'admin'); + $::request->{layout} = SL::Layout::Dispatcher->new(style => 'admin'); $::auth->punish_wrong_login; $::auth->delete_session_value('admin_password');