Pman/Login.php
authorjohn <john@roojs.com>
Thu, 11 Oct 2018 04:49:45 +0000 (12:49 +0800)
committerjohn <john@roojs.com>
Thu, 11 Oct 2018 04:49:45 +0000 (12:49 +0800)
Pman/Login.php

index 030df5c..4f64a73 100644 (file)
@@ -135,10 +135,11 @@ class Pman_Login extends Pman
         if (!$u->isAuth()) {
             $this->jok(array(
                 'id' => 0,
-                'require_oath' => empty($oath_require) || $oath_require == 1 ? 1 : 0
+                'require_oath' => empty($oath_require) || $oath_require->val == 1 ? 1 : 0
              ));
              exit;
         }
+        
         //die("got here?");
         $au = $u->getAuthUser();