Pman/Login.php
authorjohn <john@roojs.com>
Thu, 11 Oct 2018 05:13:56 +0000 (13:13 +0800)
committerjohn <john@roojs.com>
Thu, 11 Oct 2018 05:13:56 +0000 (13:13 +0800)
Pman/Login.php

index 7266f02..c5988cf 100644 (file)
@@ -141,9 +141,9 @@ class Pman_Login extends Pman
         if (!$u->isAuth()) {
             $this->jok(array(
                 'id' => 0,
-                'require_oath' => empty($oath_require) || $oath_require->val == 1 ? 1 : 0
-             ));
-             exit;
+                'require_oath' => $oath_require_val
+            ));
+            exit;
         }
         
         //die("got here?");