X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman%2FLogin.php;h=c5378af71a24f52011a7aedfa37aedd2aa5637f2;hb=b51442d90f80cf45895d3ffe595ec4c2b141b607;hp=fae3e1286ff9556e4c6532235457aa2449e014a8;hpb=4366cb6e6adda0cae4ebfc96627ad9695cd31a2c;p=Pman.Base diff --git a/Pman/Login.php b/Pman/Login.php index fae3e12..c5378af 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -134,8 +134,8 @@ class Pman_Login extends Pman if (!$u->isAuth()) { $this->jok(array( 'id' => 0, - 'oath_require' => (bool) ? 1 : 0 - )); // not logged in.. + 'oath_require' => empty($oath_require) || $oath_require == 1 ? 1 : 0 + )); exit; } //die("got here?");