1 package SL::Dispatcher::AuthHandler::Admin;
4 use parent qw(Rose::Object);
6 use SL::Layout::Dispatcher;
11 return if $::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::form->{'{AUTH}admin_password'}) == $::auth->OK());
12 return if !$::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::auth->get_session_value('admin_password')) == $::auth->OK());
14 $::request->{layout} = SL::Layout::Dispatcher->new(style => 'admin');
16 $::auth->punish_wrong_login;
17 $::auth->delete_session_value('admin_password');
18 SL::Dispatcher::show_error('admin/adminlogin', 'password');