Explorar o código

Ignore Google Authenticator en contrôleur

stany.ferer %!s(int64=2) %!d(string=hai) anos
pai
achega
6016c67873
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
                 }