mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 09:09:01 +00:00
Mail review stage 7a: mail passwords, the OAuth client secret and the mail tokens are stored encrypted with a key from config.php's backup key, kept as typed only when there is no key, with a warning in Admin > Settings > Mail when they can't be read (database 4.3.1); pictures from other sites in client email are held back on a ticket, its quick look and its work order until Show pictures is clicked; the sign-in page no longer loads the mail server's password; 26.12.3 changelog
This commit is contained in:
@@ -45,7 +45,8 @@ $config_smtp_host = $row['config_smtp_host'];
|
||||
$config_smtp_port = intval($row['config_smtp_port']);
|
||||
$config_smtp_encryption = $row['config_smtp_encryption'];
|
||||
$config_smtp_username = $row['config_smtp_username'];
|
||||
$config_smtp_password = $row['config_smtp_password'];
|
||||
// Encrypted in the database (functions/mail_secret.php)
|
||||
$config_smtp_password = function_exists('mailSecretOpen') ? mailSecretOpen($row['config_smtp_password']) : $row['config_smtp_password'];
|
||||
$config_mail_from_email = $row['config_mail_from_email'];
|
||||
$config_mail_from_name = $row['config_mail_from_name'];
|
||||
|
||||
@@ -55,14 +56,14 @@ $config_imap_host = $row['config_imap_host'];
|
||||
$config_imap_port = intval($row['config_imap_port']);
|
||||
$config_imap_encryption = $row['config_imap_encryption'];
|
||||
$config_imap_username = $row['config_imap_username'];
|
||||
$config_imap_password = $row['config_imap_password'];
|
||||
$config_imap_password = function_exists('mailSecretOpen') ? mailSecretOpen($row['config_imap_password']) : $row['config_imap_password'];
|
||||
|
||||
// Mail OAUTH2
|
||||
$config_mail_oauth_client_id = $row['config_mail_oauth_client_id'];
|
||||
$config_mail_oauth_client_secret = $row['config_mail_oauth_client_secret'];
|
||||
$config_mail_oauth_client_secret = function_exists('mailSecretOpen') ? mailSecretOpen($row['config_mail_oauth_client_secret']) : $row['config_mail_oauth_client_secret'];
|
||||
$config_mail_oauth_tenant_id = $row['config_mail_oauth_tenant_id'];
|
||||
$config_mail_oauth_refresh_token = $row['config_mail_oauth_refresh_token'];
|
||||
$config_mail_oauth_access_token = $row['config_mail_oauth_access_token'];
|
||||
$config_mail_oauth_refresh_token = function_exists('mailSecretOpen') ? mailSecretOpen($row['config_mail_oauth_refresh_token']) : $row['config_mail_oauth_refresh_token'];
|
||||
$config_mail_oauth_access_token = function_exists('mailSecretOpen') ? mailSecretOpen($row['config_mail_oauth_access_token']) : $row['config_mail_oauth_access_token'];
|
||||
$config_mail_oauth_access_token_expires_at = $row['config_mail_oauth_access_token_expires_at'];
|
||||
|
||||
// Defaults
|
||||
|
||||
Reference in New Issue
Block a user