DataObjects/Core_person.php
authorAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:10:58 +0000 (13:10 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 15 Oct 2018 05:10:58 +0000 (13:10 +0800)
DataObjects/Core_person.php

index 9674c05..f2a5ad8 100644 (file)
@@ -295,7 +295,10 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject
         $default_admin = false;
         if (!empty($ff->Pman['local_autoauth']) && 
             ($ff->Pman['local_autoauth'] === true) &&
         $default_admin = false;
         if (!empty($ff->Pman['local_autoauth']) && 
             ($ff->Pman['local_autoauth'] === true) &&
-            (!empty($_SERVER['PATH_INFO'])) &&  // auto-auth is disabled for home page
+            (
+                empty($_SERVER['PATH_INFO']) || // auto-auth is disabled for home page
+                $_SERVER['PATH_INFO'] != '/Login'
+            ) &&  // auto-auth is disabled for home page
             (!empty($_SERVER['SERVER_ADDR'])) &&
             (
                 (
             (!empty($_SERVER['SERVER_ADDR'])) &&
             (
                 (