Revision a0945527
Von Sven Schöling vor mehr als 13 Jahren hinzugefügt
SL/Auth.pm | ||
---|---|---|
36 | 36 |
return $self; |
37 | 37 |
} |
38 | 38 |
|
39 |
sub reset { |
|
40 |
my ($self, %params) = @_; |
|
41 |
|
|
42 |
$self->{SESSION} = { }; |
|
43 |
$self->{FULL_RIGHTS} = { }; |
|
44 |
$self->{RIGHTS} = { }; |
|
45 |
$self->{unique_counter} = 0; |
|
46 |
} |
|
47 |
|
|
39 | 48 |
sub get_user_dbh { |
40 | 49 |
my ($self, $login) = @_; |
41 | 50 |
my %user = $self->read_user($login); |
SL/Dispatcher.pm | ||
---|---|---|
84 | 84 |
{ |
85 | 85 |
no warnings 'once'; |
86 | 86 |
$::lxdebug = LXDebug->new; |
87 |
$::auth = SL::Auth->new; |
|
87 | 88 |
$::form = undef; |
88 | 89 |
%::myconfig = (); |
89 | 90 |
%::called_subs = (); # currently used for recursion detection |
... | ... | |
159 | 160 |
$::cgi = CGI->new(''); |
160 | 161 |
$::locale = Locale->new($::lx_office_conf{system}->{language}); |
161 | 162 |
$::form = Form->new; |
162 |
$::auth = SL::Auth->new; |
|
163 | 163 |
%::called_subs = (); |
164 | 164 |
|
165 | 165 |
eval { ($routing_type, $script_name, $action) = _route_request($script_name); 1; } or return; |
... | ... | |
234 | 234 |
$::myconfig = (); |
235 | 235 |
Form::disconnect_standard_dbh; |
236 | 236 |
$::auth->expire_session_keys->save_session; |
237 |
$::auth->dbdisconnect; |
|
238 |
$::auth = undef; |
|
237 |
$::auth->reset; |
|
239 | 238 |
|
240 | 239 |
$::lxdebug->end_request; |
241 | 240 |
$::lxdebug->leave_sub; |
Auch abrufbar als: Unified diff
$::auth nicht löschen sondern nur resetten. (Experimentell)