Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7a7f9bce

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

  • ID 7a7f9bce8beabfd6748cbbf903375b2aedffe88d
  • Vorgänger a4e85aed
  • Nachfolger 66aa51b0

Mobile Layout: Für mobile user das Mobile Layout forcieren

Unterschiede anzeigen:

SL/Dispatcher/AuthHandler/User.pm
return $self->_error(%param) unless $::myconfig{login};
$::locale = Locale->new($::myconfig{countrycode});
$::request->{layout} = SL::Layout::Dispatcher->new(style => $::myconfig{menustyle});
$::request->{layout} = $::request->is_mobile
? SL::Layout::Dispatcher->new(style => 'mobile')
: SL::Layout::Dispatcher->new(style => $::myconfig{menustyle});
my $ok = $::auth->is_api_token_cookie_valid;
$ok ||= $::form->{'{AUTH}login'} && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, $::form->{'{AUTH}password'}));

Auch abrufbar als: Unified diff