]> wagnertech.de Git - mfinanz.git/commitdiff
admin: auth konstanten als object Methoden aufrufen.
authorSven Schöling <s.schoeling@linet-services.de>
Thu, 22 Oct 2009 15:01:16 +0000 (17:01 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 22 Oct 2009 15:01:16 +0000 (17:01 +0200)
bin/mozilla/admin.pl

index 46f16d79083fdb5ab3fb89f94a69c437f3400068..a08891a8f825897c05366bb65d8aeee57f8cc2fb 100755 (executable)
@@ -78,7 +78,7 @@ $form->{stylesheet} = "lx-office-erp.css";
 $form->{favicon}    = "favicon.ico";
 
 if ($form->{action}) {
-  if ($auth->authenticate_root($form->{rpw}, 0) != Auth->OK()) {
+  if ($auth->authenticate_root($form->{rpw}, 0) != $auth->OK()) {
     $form->{error_message} = $locale->text('Incorrect Password!');
     adminlogin();
     exit;
@@ -88,7 +88,7 @@ if ($form->{action}) {
 
   call_sub($locale->findsub($form->{action}));
 
-} elsif ($auth->authenticate_root($form->{rpw}, 0) == Auth->OK()) {
+} elsif ($auth->authenticate_root($form->{rpw}, 0) == $auth->OK()) {
 
   $auth->create_or_refresh_session() if ($auth->session_tables_present());