fix: SMTP SSL/TLS checkboxes not reflecting actual config in admin settings
Some checks failed
Some checks failed
The EmailStatusResponse didn't include smtp_use_tls/smtp_use_ssl fields, and the JavaScript hardcoded defaults (TLS=true, SSL=false) instead of reading from the API response. Now the API returns the effective values and the UI displays them correctly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -356,8 +356,8 @@ function adminSettings() {
|
||||
smtp_port: this.emailSettings.smtp_port || 587,
|
||||
smtp_user: this.emailSettings.smtp_user || '',
|
||||
smtp_password: '', // Never populated from API
|
||||
smtp_use_tls: true,
|
||||
smtp_use_ssl: false,
|
||||
smtp_use_tls: this.emailSettings.smtp_use_tls ?? true,
|
||||
smtp_use_ssl: this.emailSettings.smtp_use_ssl ?? false,
|
||||
sendgrid_api_key: '',
|
||||
mailgun_api_key: '',
|
||||
mailgun_domain: this.emailSettings.mailgun_domain || '',
|
||||
|
||||
Reference in New Issue
Block a user