Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e06fdbe7

Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt

  • ID e06fdbe7cc20e4d79a788ca9bd28ba422f09ba47
  • Vorgänger 5491c513
  • Nachfolger 7a59817e

LoginScreen: im Check auf "schon angemeldet?" Client setzen

Unterschiede anzeigen:

SL/Controller/LoginScreen.pm
my %user = $::auth->read_user(login => $login);
return if ($user{login} || '') ne $login;
# Check if there's a client set in the session -- and whether or not
# the user still has access to the client.
my $client_id = $::auth->get_session_value('client_id');
return if !$client_id;
if (!$::auth->set_client($client_id)) {
$::auth->punish_wrong_login;
$::auth->destroy_session;
$::auth->create_or_refresh_session;
$self->show_login_form(error => t8('Incorrect username or password or no access to selected client!'));
return 1;
}
# Check if the session is logged in correctly.
return if SL::Auth::OK() != $::auth->authenticate($login, undef);

Auch abrufbar als: Unified diff