fix SMTP configuration

This commit is contained in:
lesion
2022-07-18 10:05:59 +02:00
parent 9e86a9399b
commit 92c676622d
9 changed files with 16 additions and 30 deletions

View File

@@ -46,7 +46,6 @@ v-card
import { mapActions, mapState } from 'vuex'
export default {
data ({ $store }) {
const smtp = { auth: {}, ...$store.state.settings.smtp }
// if ($store.state.settings.smtp) {
// smtp.host = $store.state.settings.smtp.host
// if ($store.state.settings.smtp.auth) {
@@ -59,10 +58,13 @@ export default {
return {
isValid: false,
loading: false,
smtp,
smtp: { auth: {} },
admin_email: $store.state.settings.admin_email || ''
}
},
async fetch () {
this.smtp = await this.$axios.$get('/settings/smtp')
},
computed: mapState(['settings']),
watch: {
'smtp.secure' (value) {