diff --git a/bureau/admin/adm_login.php b/bureau/admin/adm_login.php index 8c98d268..4812c63f 100644 --- a/bureau/admin/adm_login.php +++ b/bureau/admin/adm_login.php @@ -58,13 +58,6 @@ if ( empty($id) && isset($_COOKIE["oldid"]) && !empty($_COOKIE["oldid"])) { exit(); } - if ($r['lastip'] != get_remote_ip() ) { - $error=_("Your IP is incorrect."); - include("index.php"); - exit(); - } - // FIXME we should add a peremption date on the cookie - // Ok, so we remove the cookie : setcookie('oldid','',0,'/'); unset($_COOKIE['oldid']); diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index 0eb007aa..73185567 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -285,13 +285,6 @@ class m_mem { return false; } $db->next_record(); - if (variable_get('single_ip_desktop', '0', "Set this to 1 to enable the IP address check and unicity for an account. Prevents multiple connections to the same account and disable IP address roaming.") - && $db->f("ip")) { - if ($db->f("me") != $db->f("ip")) { - $err->raise("mem", _("IP address incorrect, please contact the administrator")); - return false; - } - } $cuid = $db->f("uid"); if (panel_islocked() && $cuid != 2000) {