We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68efe6a commit eaf9b59Copy full SHA for eaf9b59
src/GLPIMailer.php
@@ -138,7 +138,8 @@ public function smtpConnect($options = null)
138
if (
139
$this->oauth instanceof OAuthTokenProvider
140
&& $result === true
141
- && ($refresh_token = $this->oauth->getOauthToken()->getRefreshToken() ?? null) !== (new GLPIKey())->decrypt($CFG_GLPI['smtp_oauth_refresh_token'])
+ && ($refresh_token = $this->oauth->getOauthToken()->getRefreshToken() ?? null) !== null
142
+ && $refresh_token !== (new GLPIKey())->decrypt($CFG_GLPI['smtp_oauth_refresh_token'])
143
) {
144
// The refresh token may be refreshed itself.
145
// Be sure to always store any new refresh token.
0 commit comments