mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix: do not update SMTP port on user custom port, fix #471
This commit is contained in:
parent
412f8cc5f0
commit
f9d9badd24
1 changed files with 4 additions and 1 deletions
|
@ -73,8 +73,11 @@ export default {
|
|||
computed: mapState(['settings']),
|
||||
watch: {
|
||||
'smtp.secure' (value) {
|
||||
console.error(this.smtp.port)
|
||||
if ([465, 587].includes(this.smtp.port) || !this.smtp.port) {
|
||||
this.smtp.port = value ? 465 : 587
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['setSetting']),
|
||||
|
|
Loading…
Reference in a new issue