Skip to content

Commit

Permalink
Fix broken 2FA.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikuolan committed Dec 2, 2023
1 parent c92ddd4 commit 4912084
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PHPMailer:
Checksum: "bb60757402b60f487ae3f36d711bfa0a4c5fb4e1569be0208b4ce69e6d6d85bd:48507"
events/phpmailer.php:
From: "https://raw.githubusercontent.com/CIDRAM/CIDRAM-Extras/master/modules/phpmailer.php"
Checksum: "5a718585c1c41b881a8518cc317f4c4567a2fe190e4bfa064fca330fb5a1fcba:7487"
Checksum: "5862c0ed5f9b86e7ec5a82621eca1d48588fd312bc12804b5435a3667da00fb1:7487"
Used with: "events"
imports/phpmailer.yml:
From: "https://raw.githubusercontent.com/CIDRAM/CIDRAM-Extras/master/modules/phpmailer.yml"
Expand Down
4 changes: 2 additions & 2 deletions modules/phpmailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License: GNU/GPLv2
* @see LICENSE.txt
*
* This file: PHPMailer event handlers (last modified: 2023.09.27).
* This file: PHPMailer event handlers (last modified: 2023.12.02).
*/

/**
Expand All @@ -26,7 +26,7 @@
return false;
}

$Truncate = $this->readBytes($this->Configuration['general']['truncate']);
$Truncate = $this->readBytes($this->Configuration['logging']['truncate']);
$WriteMode = (!file_exists($EventLog) || $Truncate > 0 && filesize($EventLog) >= $Truncate) ? 'wb' : 'ab';
if (!is_resource($Handle = fopen($EventLog, $WriteMode))) {
trigger_error('The "writeToPHPMailerEventLog" event failed to open "' . $EventLog . '" for writing.');
Expand Down

0 comments on commit 4912084

Please sign in to comment.