]> git.gsnw.org Git - m0n0chwall.git/commitdiff
Fix if($moddb) entry, dunno how it became mixed-up
authorjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Wed, 29 Mar 2006 09:51:58 +0000 (09:51 +0000)
committerjdegraeve <jdegraeve@e36fee2c-cc09-0410-a7cc-ebac5c6737de>
Wed, 29 Mar 2006 09:51:58 +0000 (09:51 +0000)
git-svn-id: https://svn.m0n0.ch/wall/trunk@115 e36fee2c-cc09-0410-a7cc-ebac5c6737de

captiveportal/index.php

index 5c533d2e37c2b62e81e5748950a18a62153b4c43..3f731ad5c0b7ff1e59e294766d70fd324fd696a8 100755 (executable)
@@ -129,7 +129,7 @@ EOD;
         captiveportal_logportalauth($_POST['auth_user'],$clientmac,$clientip,"ERROR");
         portal_reply_page($redirurl, "error");
     }
-    
+
 } else if ($_POST['accept'] && $config['captiveportal']['auth_method'] == "local") {
 
     //check against local usermanager
@@ -146,11 +146,11 @@ EOD;
                 $moddb = true;
             }
         }
-        if ($moddb)portal_reply_page($redirurl, "error", $auth_list['error']);
+        if ($moddb)
             write_config();
-            
+
         $userdb = &$config['captiveportal']['user'];
-        
+
         for ($i = 0; $i < count($userdb); $i++) {
             if (($userdb[$i]['name'] == $_POST['auth_user']) && ($userdb[$i]['password'] == md5($_POST['auth_pass']))) {
                 $loginok = true;