]> wagnertech.de Git - kivitendo-erp.git/commitdiff
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 406510e2cd44c455d1ee4c03fbbd63c7905e6b11..55d238022a0b86d623dd4f0176cdfdb747dec3b8 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 b89487c7ef42d61af4a2fa10126ab624e664383d..e92de0c24249cb6bd8a8ac866b63c8a88772f035 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 43ef952248f8d3a7724f32159b9b3755702909ea..4d3679c784dea46cdc0c610de6ca44d76c4e2903 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 {