mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Backwards compatibility
This commit is contained in:
@@ -102,6 +102,9 @@ class Update extends Action
|
||||
$smtp[$key] = ${$key};
|
||||
}
|
||||
}
|
||||
|
||||
// Backwards compatibility
|
||||
$smtp['replyToEmail'] = $smtp['replyToEmail'] ?? $smtp['replyTo'] ?? '';
|
||||
|
||||
// Ensure required fields are set
|
||||
$requiredKeys = ['host', 'port', 'senderEmail'];
|
||||
|
||||
@@ -418,7 +418,7 @@ class Project extends Model
|
||||
$document->setAttribute('smtpEnabled', $smtp['enabled'] ?? false);
|
||||
$document->setAttribute('smtpSenderEmail', $smtp['senderEmail'] ?? '');
|
||||
$document->setAttribute('smtpSenderName', $smtp['senderName'] ?? '');
|
||||
$document->setAttribute('smtpReplyToEmail', $smtp['replyToEmail'] ?? '');
|
||||
$document->setAttribute('smtpReplyToEmail', $smtp['replyToEmail'] ?? $smtp['replyTo'] ?? ''); // Includes backwards compatibility
|
||||
$document->setAttribute('smtpReplyToName', $smtp['replyToName'] ?? '');
|
||||
$document->setAttribute('smtpHost', $smtp['host'] ?? '');
|
||||
$document->setAttribute('smtpPort', $smtp['port'] ?? '');
|
||||
|
||||
Reference in New Issue
Block a user