Revision a3339fc7
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
SL/Dispatcher/AuthHandler/Admin.pm | ||
---|---|---|
7 | 7 |
sub handle { |
8 | 8 |
%::myconfig = (); |
9 | 9 |
|
10 |
return if $::auth->authenticate_root($::auth->get_session_value('admin_password')) == $::auth->OK(); |
|
10 |
return if $::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::form->{'{AUTH}admin_password'}) == $::auth->OK()); |
|
11 |
return if !$::form->{'{AUTH}admin_password'} && ($::auth->authenticate_root($::auth->get_session_value('admin_password')) == $::auth->OK()); |
|
11 | 12 |
|
12 | 13 |
$::auth->delete_session_value('admin_password'); |
13 | 14 |
SL::Dispatcher::show_error('login/password_error', 'password', is_admin => 1); |
Auch abrufbar als: Unified diff
User- und Adminlogin jederzeit via Formularfelder ermöglichen