Revision b6fd15a8
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Dispatcher/AuthHandler/Admin.pm | ||
---|---|---|
3 | 3 |
use strict; |
4 | 4 |
use parent qw(Rose::Object); |
5 | 5 |
|
6 |
use SL::Controller::Layout;
|
|
6 |
use SL::Layout::Dispatcher;
|
|
7 | 7 |
|
8 | 8 |
sub handle { |
9 | 9 |
%::myconfig = (); |
... | ... | |
11 | 11 |
return if $::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::form->{'{AUTH}admin_password'}) == $::auth->OK()); |
12 | 12 |
return if !$::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::auth->get_session_value('admin_password')) == $::auth->OK()); |
13 | 13 |
|
14 |
$::request->{layout} = SL::Controller::Layout->new(style => 'admin');
|
|
14 |
$::request->{layout} = SL::Layout::Dispatcher->new(style => 'admin');
|
|
15 | 15 |
|
16 | 16 |
$::auth->punish_wrong_login; |
17 | 17 |
$::auth->delete_session_value('admin_password'); |
Auch abrufbar als: Unified diff
Layout package names refactored
SL::Controller::Layout::* -> SL::Layout::*
SL::Controller::Layout -> SL::Layout::Dispatcher