X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman%2FLogin.php;h=9e4f42d88c2669f3bdfc7f41339f7a5d2e3b508f;hb=6a46e561726aa0388b3c1d6e1e74bf6feac315db;hp=e9edd6d262ab0b8b38430ce35bfef79101f6e23e;hpb=b00f4cb8d19368e2fa846812452599eea7dfdcae;p=Pman.Base diff --git a/Pman/Login.php b/Pman/Login.php index e9edd6d..9e4f42d 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -130,18 +130,18 @@ class Pman_Login extends Pman $u = DB_DataObject::factory($tbl); $s = DB_DataObject::factory('core_setting'); - $require_oath = 1; + $require_oath_val = 1; $require_oath = $s->lookup('core', 'two_factor_authentication_requirement'); if(!empty($require_oath)) { if($require_oath->val == 0) { - $oath_require_val = 0; + $require_oath_val = 0; } } if (!$u->isAuth()) { $this->jok(array( 'id' => 0, - 'require_oath' => $oath_require_val + 'require_oath' => $require_oath_val )); exit; }