Revision 77fda875
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Dispatcher/AuthHandler/Admin.pm | ||
---|---|---|
10 | 10 |
|
11 | 11 |
%::myconfig = (); |
12 | 12 |
|
13 |
my $ok = $::auth->get_api_token_cookie ? 1 : 0;
|
|
13 |
my $ok = $::auth->is_api_token_cookie_valid;
|
|
14 | 14 |
$ok ||= $::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::form->{'{AUTH}admin_password'}) == $::auth->OK()); |
15 | 15 |
$ok ||= !$::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::auth->get_session_value('admin_password')) == $::auth->OK()); |
16 | 16 |
$ok ||= $params{action} eq 'login'; |
Auch abrufbar als: Unified diff
Überprüfung vom API-Token gefixt