|
|
@@ -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;
|
|
|
}
|