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