Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 023edaf2

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

  • ID 023edaf213fac06e360bca57ea60b2fbe9125717
  • Vorgänger 61f34a4a
  • Nachfolger 672d08f2

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

Unterschiede anzeigen:

SL/Dispatcher/AuthHandler/User.pm
26 26
  return $self->_error(%param) unless $::myconfig{login};
27 27

  
28 28
  $::locale = Locale->new($::myconfig{countrycode});
29
  $::request->{layout} = SL::Layout::Dispatcher->new(style => $::myconfig{menustyle});
29
  $::request->{layout} = $::request->is_mobile
30
    ? SL::Layout::Dispatcher->new(style => 'mobile')
31
    : SL::Layout::Dispatcher->new(style => $::myconfig{menustyle});
30 32

  
31 33
  my $ok   =  $::auth->is_api_token_cookie_valid;
32 34
  $ok    ||=  $::form->{'{AUTH}login'}                      && (SL::Auth::OK() == $::auth->authenticate($::myconfig{login}, $::form->{'{AUTH}password'}));

Auch abrufbar als: Unified diff