fix: do not update SMTP port on user custom port, fix #471

This commit is contained in:
lesion 2024-09-28 21:22:17 +02:00
parent 412f8cc5f0
commit f9d9badd24
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -73,7 +73,10 @@ export default {
computed: mapState(['settings']),
watch: {
'smtp.secure' (value) {
this.smtp.port = value ? 465 : 587
console.error(this.smtp.port)
if ([465, 587].includes(this.smtp.port) || !this.smtp.port) {
this.smtp.port = value ? 465 : 587
}
}
},
methods: {