Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4a12c839

Von Sven Schöling vor mehr als 12 Jahren hinzugefügt

  • ID 4a12c839937370488b8b8a40bef376e7cb0a2ce6
  • Vorgänger 3ab26ffc
  • Nachfolger 0164607c

Layouts eingeführt

bin/mozilla/menu* -> SL/Controller/Layout/*

Unterschiede anzeigen:

SL/Dispatcher/AuthHandler/Admin.pm
package SL::Dispatcher::AuthHandler::Admin;
use strict;
use parent qw(Rose::Object);
use SL::Controller::Layout;
sub handle {
%::myconfig = ();
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');
$::auth->punish_wrong_login;
$::auth->delete_session_value('admin_password');
SL::Dispatcher::show_error('admin/adminlogin', 'password');

Auch abrufbar als: Unified diff