Pman/Login.php
[Pman.Base] / Pman / Login.php
index dcd19e5..275409f 100644 (file)
@@ -52,6 +52,10 @@ class Pman_Login extends Pman
            return $this->logout();
         }
         
+        if(!empty($_REQUEST['user_has_oath'])) {
+            return $this->checkUserOath();
+        }
+        
         // general query...
         if (!empty($_REQUEST['getAuthUser'])) {
             //DB_Dataobject::debugLevel(5);
@@ -294,7 +298,7 @@ class Pman_Login extends Pman
         }
         
         if(!empty($u->oath_key) && empty($_REQUEST['oath_password'])){
-            $this->jerror('LOGIN-BAD','Your account require Two-Factor Authentication');
+            $this->jerror('LOGIN-BAD','Your account requires Two-Factor Authentication');
         }
         
         // check if config allows non-owner passwords.