mirror of
https://github.com/standardebooks/web.git
synced 2025-07-18 04:16:38 -04:00
Move reading secret constants into files that need them to prevent crashes when scripts are run by users without permissions to read secrets
This commit is contained in:
parent
fe93a1184b
commit
0bf50873ac
2 changed files with 7 additions and 2 deletions
|
@ -2,6 +2,9 @@
|
|||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
|
||||
define('EMAIL_SMTP_USERNAME', trim(file_get_contents(POSTMARK_SECRET_FILE_PATH)) ?: '');
|
||||
const EMAIL_SMTP_PASSWORD = EMAIL_SMTP_USERNAME;
|
||||
|
||||
class Email{
|
||||
public $To = '';
|
||||
public $From = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue