Pman/Login.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:15:08 +0000 (11:15 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 16 Dec 2010 03:15:08 +0000 (11:15 +0800)
Pman/Login.php

index f287ac5..7fc99ef 100644 (file)
@@ -130,6 +130,15 @@ class Pman_Login extends Pman
             $this->jerr("User switching not permitted");
         }
         
+        $tbl = empty($ff->Pman['authTable']) ? 'Person' : $ff->Pman['authTable'];
+        $u = DB_DataObject::factory($tbl);
+        $u->get($id);
+        if (!$u->active()) {
+            $this->jerr('Account disabled');
+        }
+        
+        
+        
     }