Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3880d657

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID 3880d6570d3ee1d0f26e54887defcf49f359b9a9
  • Vorgänger d2c9cb3b
  • Nachfolger 6eb48ef9

Erste Version Frameless

Unterschiede anzeigen:

SL/Controller/LoginScreen.pm
19 19
  return if $self->_redirect_to_main_script_if_already_logged_in;
20 20

  
21 21
  # Otherwise show the login form.
22
  $self->render('login_screen/user_login');
22
  $self->render('login_screen/user_login', { no_menu => 1 });
23 23
}
24 24

  
25 25
sub action_logout {
......
27 27

  
28 28
  $::auth->destroy_session;
29 29
  $::auth->create_or_refresh_session;
30
  $self->render('login_screen/user_login', error => $::locale->text('You are logged out!'));
30
  $self->render('login_screen/user_login', { no_menu => 1 }, error => $::locale->text('You are logged out!'));
31 31
}
32 32

  
33 33
sub action_login {
......
54 54
  # Other login errors.
55 55
  if (0 > $result) {
56 56
    $::auth->punish_wrong_login;
57
    return $self->render('login_screen/user_login', error => $::locale->text('Incorrect username or password!'));
57
    return $self->render('login_screen/user_login', { no_menu => 1 }, error => $::locale->text('Incorrect username or password!'));
58 58
  }
59 59

  
60 60
  # Everything is fine.
......
83 83

  
84 84
  return $self->redirect_to($::form->{callback}) if $::form->{callback};
85 85

  
86
  my %style_to_script_map = (
87
    v3  => 'v3',
88
    neu => 'new',
89
    v4  => 'v4',
90
  );
91

  
92
  my $menu_script = $style_to_script_map{$user->{menustyle}} || '';
93

  
94
  $self->redirect_to(controller => "menu${menu_script}.pl", action => 'display');
86
  $self->redirect_to(controller => "login.pl", action => 'company_logo');
95 87
}
96 88

  
97 89
sub _redirect_to_main_script_if_already_logged_in {

Auch abrufbar als: Unified diff