Revision f5851080
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Controller/LoginScreen.pm | ||
---|---|---|
32 | 32 |
return if $self->_redirect_to_main_script_if_already_logged_in; |
33 | 33 |
|
34 | 34 |
# Otherwise show the login form. |
35 |
$self->show_login_form(error => error_state($::form->{error}));
|
|
35 |
$self->show_login_form(error_state($::form->{error})); |
|
36 | 36 |
} |
37 | 37 |
|
38 | 38 |
sub action_logout { |
... | ... | |
158 | 158 |
} |
159 | 159 |
|
160 | 160 |
sub error_state { |
161 |
return { |
|
162 |
session => $::locale->text('The session is invalid or has expired.'), |
|
163 |
password => $::locale->text('Incorrect username or password or no access to selected client!'), |
|
164 |
}->{$_[0]}; |
|
161 |
my %states = ( |
|
162 |
session => { warning => t8('The session has expired. Please log in again.') }, |
|
163 |
password => { error => t8('Incorrect username or password or no access to selected client!') }, |
|
164 |
); |
|
165 |
|
|
166 |
return %{ $states{$_[0]} || {} }; |
|
165 | 167 |
} |
166 | 168 |
|
167 | 169 |
sub set_layout { |
Auch abrufbar als: Unified diff
Eindeutiger und freundlicher Hinweis, wenn Session abgelaufen ist
Nicht "Sie sind abgemeldet." in Fehlerfarben.