diff --git a/www/class/centreonAuth.class.php b/www/class/centreonAuth.class.php index 09f9c92af1b..79fd0cad515 100644 --- a/www/class/centreonAuth.class.php +++ b/www/class/centreonAuth.class.php @@ -231,6 +231,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 diff --git a/www/install/insertBaseConf.sql b/www/install/insertBaseConf.sql index 4e9c0e02a30..ddd061c5d74 100644 --- a/www/install/insertBaseConf.sql +++ b/www/install/insertBaseConf.sql @@ -2,7 +2,7 @@ -- Insert version -- -INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '21.10.12'); +INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '21.10.13'); -- -- Contenu de la table `contact` diff --git a/www/install/php/Update-21.10.13.php b/www/install/php/Update-21.10.13.php new file mode 100644 index 00000000000..8572f2a05df --- /dev/null +++ b/www/install/php/Update-21.10.13.php @@ -0,0 +1,20 @@ +