diff --git a/core/config.class.inc.php b/core/config.class.inc.php
index 110675028..ca522bf48 100644
--- a/core/config.class.inc.php
+++ b/core/config.class.inc.php
@@ -592,13 +592,29 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => false,
],
- 'email_css' => [
- 'type' => 'string',
- 'description' => 'CSS that will override the standard stylesheet used for the notifications',
- 'default' => "",
- 'value' => "",
+ 'email_transport_smtp.allow_self_signed' => array(
+ 'type' => 'bool',
+ 'description' => 'Allow self signed peer certificates',
+ 'default' => false,
+ 'value' => false,
'source_of_value' => '',
'show_in_conf_sample' => false,
+ ),
+ 'email_transport_smtp.verify_peer' => array(
+ 'type' => 'bool',
+ 'description' => 'Verify peer certificate',
+ 'default' => false,
+ 'value' => false,
+ 'source_of_value' => '',
+ 'show_in_conf_sample' => false,
+ ),
+ 'email_css' => [
+ 'type' => 'string',
+ 'description' => 'CSS that will override the standard stylesheet used for the notifications',
+ 'default' => "",
+ 'value' => "",
+ 'source_of_value' => '',
+ 'show_in_conf_sample' => false,
],
'email_default_sender_address' => [
'type' => 'string',
diff --git a/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml b/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml
index e7cd66a27..db79a1b3d 100644
--- a/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml
+++ b/datamodels/2.x/itop-oauth-client/datamodel.itop-oauth-client.xml
@@ -67,12 +67,12 @@
true
-
+
client_id
false
-
+
client_secret
false
@@ -321,7 +321,6 @@ HTML
-
true
@@ -484,21 +483,6 @@ HTML
}
]]>
-
- false
- protected
- Overload-DBObject
- ListChanges();
- if (array_key_exists('client_id', $aChanges) || array_key_exists('client_secret', $aChanges) || array_key_exists('redirect_url', $aChanges)) {
- $sMessage = Dict::S('itop-oauth-client:Message:RegenerateToken');
- self::SetSessionMessage(get_class($this), $this->GetKey(), 'RegenerateToken', $sMessage, 'info', 1);
- }
- }
- ]]>
-
false
public
@@ -544,6 +528,12 @@ HTML
$this->Set('used_scope', 'advanced');
$this->Set('scope', '');
}
+ $aChanges = $this->ListChanges();
+ if (array_key_exists('client_id', $aChanges) || array_key_exists('client_secret', $aChanges) || array_key_exists('redirect_url', $aChanges)) {
+ $sMessage = Dict::S('itop-oauth-client:Message:RegenerateToken');
+ self::SetSessionMessage(get_class($this), $this->GetKey(), 'RegenerateToken', $sMessage, 'info', 1);
+ $this->Set('status', 'inactive');
+ }
}
]]>
@@ -645,7 +635,6 @@ HTML
-
true
@@ -855,6 +844,12 @@ HTML
$this->Set('used_scope', 'advanced');
$this->Set('scope', '');
}
+ $aChanges = $this->ListChanges();
+ if (array_key_exists('client_id', $aChanges) || array_key_exists('client_secret', $aChanges) || array_key_exists('redirect_url', $aChanges)) {
+ $sMessage = Dict::S('itop-oauth-client:Message:RegenerateToken');
+ self::SetSessionMessage(get_class($this), $this->GetKey(), 'RegenerateToken', $sMessage, 'info', 1);
+ $this->Set('status', 'inactive');
+ }
}
]]>
@@ -928,21 +923,6 @@ HTML
}
]]>
-
- false
- protected
- Overload-DBObject
- ListChanges();
- if (array_key_exists('client_id', $aChanges) || array_key_exists('client_secret', $aChanges) || array_key_exists('redirect_url', $aChanges)) {
- $sMessage = Dict::S('itop-oauth-client:Message:RegenerateToken');
- self::SetSessionMessage(get_class($this), $this->GetKey(), 'RegenerateToken', $sMessage, 'info', 1);
- }
- }
- ]]>
-
diff --git a/sources/Core/Email/EmailLaminas.php b/sources/Core/Email/EmailLaminas.php
index a2e258ce0..e06e2f5cc 100644
--- a/sources/Core/Email/EmailLaminas.php
+++ b/sources/Core/Email/EmailLaminas.php
@@ -170,6 +170,8 @@ class EMailLaminas extends Email
$sEncryption = self::$m_oConfig->Get('email_transport_smtp.encryption');
$sUserName = self::$m_oConfig->Get('email_transport_smtp.username');
$sPassword = self::$m_oConfig->Get('email_transport_smtp.password');
+ $bAllowSelfSigned = static::$m_oConfig->Get('email_transport_smtp.allow_self_signed');
+ $bVerifyPeer = static::$m_oConfig->Get('email_transport_smtp.verify_peer');
$oTransport = new Smtp();
$aOptions = [
@@ -179,6 +181,8 @@ class EMailLaminas extends Email
'connection_config' => [
'ssl' => $sEncryption,
],
+ 'allow_self_signed' => $bAllowSelfSigned,
+ 'verify_peer' => $bVerifyPeer,
];
if (strlen($sUserName) > 0) {
$aOptions['connection_config']['username'] = $sUserName;