Pman/Login.php
authorjohn <john@roojs.com>
Wed, 10 Oct 2018 08:18:11 +0000 (16:18 +0800)
committerjohn <john@roojs.com>
Wed, 10 Oct 2018 08:18:11 +0000 (16:18 +0800)
Pman/Login.php

index 92ff30d..9efc955 100644 (file)
@@ -319,7 +319,7 @@ class Pman_Login extends Pman
         
         if(
             !empty($u->oath_key) && 
-            !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'])
+            !$u->checkTwoFactorAuthentication($_REQUEST['oath_password'], $u->oath_key)
         ){
             $this->jerror('LOGIN-BAD', 'You typed the wrong Username or Password  (3)');
             exit;