diff --git a/www/class/centreonAuth.class.php b/www/class/centreonAuth.class.php index db9d0cca170..89b4bf88e37 100644 --- a/www/class/centreonAuth.class.php +++ b/www/class/centreonAuth.class.php @@ -230,6 +230,14 @@ protected function checkPassword($password, $token = "", $autoImport = false) || $this->userInfos["contact_auth_type"] == "local" || $this->autologin ) { + if ( + array_key_exists('contact_oreon', $this->userInfos) + && $this->userInfos['contact_oreon'] !== '1' + ) { + $this->passwdOk = 0; + return; + } + if ($this->autologin && $this->userInfos["contact_autologin_key"] && $this->userInfos["contact_autologin_key"] === $token