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

Commit

Permalink
chore(release): merge hotfix-mon-15384 in 21.04.x (#11980)
Browse files Browse the repository at this point in the history
* enh(auth): autologin enhancement (#11958)

Refs: MON-15384

* update version to 21.04.20

Co-authored-by: Kevin Duret <[email protected]>
  • Loading branch information
tuntoja and kduret authored Oct 12, 2022
1 parent 3002339 commit c2cf496
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
8 changes: 8 additions & 0 deletions www/class/centreonAuth.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion www/install/insertBaseConf.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
-- Insert version
--

INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '21.04.19');
INSERT INTO `informations` (`key` ,`value`) VALUES ('version', '21.04.20');

--
-- Contenu de la table `contact`
Expand Down
20 changes: 20 additions & 0 deletions www/install/php/Update-21.04.20.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/*
* Copyright 2005 - 2022 Centreon (https://www.centreon.com/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* For more information : [email protected]
*
*/

0 comments on commit c2cf496

Please sign in to comment.