use SL::Dispatcher::AuthHandler::User;
use SL::User;
+__PACKAGE__->run_before('set_layout');
#
# actions
#
$::form->{login} = $::myconfig{login};
$::locale = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode};
my $user = User->new(login => $::myconfig{login});
- $::request->{layout} = SL::Controller::Layout->new(style => $user->{menustyle});
+ $::request->{layout} = SL::Layout::Dispatcher->new(style => $user->{menustyle});
# if we get an error back, bale out
my $result = $user->login($::form);
}->{$_[0]};
}
+sub set_layout {
+ $::request->{layout} = SL::Layout::Dispatcher->new(style => 'login');
+}
+
1;