Revision 3ab26ffc
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
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', { no_menu => 1 }); |
|
22 |
$self->render('login_screen/user_login', { no_menu => 1 }, error => error_state($::form->{error}));
|
|
23 | 23 |
} |
24 | 24 |
|
25 | 25 |
sub action_logout { |
... | ... | |
108 | 108 |
return 1; |
109 | 109 |
} |
110 | 110 |
|
111 |
sub error_state { |
|
112 |
return { |
|
113 |
session => $::locale->text('The session is invalid or has expired.'), |
|
114 |
password => $::locale->text('Incorrect password!'), |
|
115 |
}->{$_[0]}; |
|
116 |
} |
|
117 |
|
|
111 | 118 |
1; |
Auch abrufbar als: Unified diff
Bei Loginfehlern das Menü nicht mitrendern