Momentan wird eh am Anfang der Session einmal gespeichert, wenn
Benutzername und Passwort überprüft wurden. Somit erspart man sich
späteres Speichern.
my $self = shift;
my $provided_dbh = shift;
- my $dbh = $provided_dbh || $self->dbconnect();
+ my $dbh = $provided_dbh || $self->dbconnect(1);
+
+ return unless $dbh;
$dbh->begin_work unless $provided_dbh;
$::auth->set_session_value('login', $::form->{login}, 'password', $::form->{password});
$::auth->create_or_refresh_session;
- $::auth->delete_session_value('FLASH')->save_session();
+ $::auth->delete_session_value('FLASH');
delete $::form->{password};
if ($action) {
$::form = undef;
$::myconfig = ();
Form::disconnect_standard_dbh;
+ $::auth->save_session;
$::auth->dbdisconnect;
$::lxdebug->end_request;
}
sub flash_later {
- $::auth->set_session_value(FLASH => _store_flash($::auth->get_session_value('FLASH'), @_))->save_session();
+ $::auth->set_session_value(FLASH => _store_flash($::auth->get_session_value('FLASH'), @_));
}
sub render_flash {