Legacy-Interface: Auth::authenticate unterstützt "is_crypted" nicht mehr
authorMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 25 Feb 2011 16:53:12 +0000 (17:53 +0100)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Fri, 25 Feb 2011 16:53:12 +0000 (17:53 +0100)
SL/Dispatcher.pm
bin/mozilla/admin.pl
bin/mozilla/login.pl

index 406510e..55d2380 100644 (file)
@@ -198,7 +198,7 @@ sub handle_request {
 
       $::locale = Locale->new($::myconfig{countrycode});
 
-      show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password}, 0);
+      show_error('login/password_error', 'password') if SL::Auth::OK != $::auth->authenticate($::form->{login}, $::form->{password});
 
       $::auth->set_session_value('login', $::form->{login}, 'password', $::form->{password});
       $::auth->create_or_refresh_session;
index b89487c..e92de0c 100755 (executable)
@@ -78,7 +78,7 @@ sub run {
   $form->{favicon}    = "favicon.ico";
 
   if ($form->{action}) {
-    if ($auth->authenticate_root($form->{rpw}, 0) != $auth->OK()) {
+    if ($auth->authenticate_root($form->{rpw}) != $auth->OK()) {
       $form->{error_message} = $locale->text('Incorrect Password!');
       adminlogin();
     } else {
index 43ef952..4d3679c 100644 (file)
@@ -65,7 +65,7 @@ sub run {
     %::myconfig = $auth->read_user($form->{login}) if ($form->{login});
     $::locale   = Locale->new($::myconfig{countrycode}) if $::myconfig{countrycode};
 
-    if (!$::myconfig{login} || (SL::Auth::OK != $auth->authenticate($form->{login}, $form->{password}, 0))) {
+    if (!$::myconfig{login} || (SL::Auth::OK != $auth->authenticate($form->{login}, $form->{password}))) {
       $form->{error_message} = $::locale->text('Incorrect username or password!');
       login_screen();
     } else {