Просмотр исходного кода

Ignore Google Authenticator en contrôleur

stany.ferer 2 лет назад
Родитель
Сommit
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;
                 }