Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
enh(auth): autologin enhancement (#11957)
Browse files Browse the repository at this point in the history
Refs: MON-15384
  • Loading branch information
kduret authored Oct 7, 2022
1 parent a487b58 commit fa76286
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions www/class/centreonAuth.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fa76286

Please sign in to comment.