瀏覽代碼

Ignore Google Authenticator en contrôleur

stany.ferer 2 年之前
父節點
當前提交
6016c67873
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/class/user.class.php

+ 1 - 1
core/class/user.class.php

@@ -59,7 +59,7 @@ class user {
             db::bind(':email', $_input["email"]);
             $row = db::single();
 
-            if($row["googleAuthenticator"] == 1){
+            if($row["googleAuthenticator"] == 1 AND DOMAIN_CONTROL != $_SERVER['SERVER_NAME']){
                 if(googleAuthenticator::verifyCode($row["googleAuthenticatorSecret"], $_input["authenticator"], 1) == FALSE){
                     $row["id"] = NULL;
                 }