Revision e06fdbe7
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Controller/LoginScreen.pm | ||
---|---|---|
129 | 129 |
my %user = $::auth->read_user(login => $login); |
130 | 130 |
return if ($user{login} || '') ne $login; |
131 | 131 |
|
132 |
# Check if there's a client set in the session -- and whether or not |
|
133 |
# the user still has access to the client. |
|
134 |
my $client_id = $::auth->get_session_value('client_id'); |
|
135 |
return if !$client_id; |
|
136 |
|
|
137 |
if (!$::auth->set_client($client_id)) { |
|
138 |
$::auth->punish_wrong_login; |
|
139 |
$::auth->destroy_session; |
|
140 |
$::auth->create_or_refresh_session; |
|
141 |
$self->show_login_form(error => t8('Incorrect username or password or no access to selected client!')); |
|
142 |
return 1; |
|
143 |
} |
|
144 |
|
|
132 | 145 |
# Check if the session is logged in correctly. |
133 | 146 |
return if SL::Auth::OK() != $::auth->authenticate($login, undef); |
134 | 147 |
|
Auch abrufbar als: Unified diff
LoginScreen: im Check auf "schon angemeldet?" Client setzen