Quellcode durchsuchen

Ignore Google Authenticator en contrôleur

stany.ferer vor 2 Jahren
Ursprung
Commit
6016c67873
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;
                 }