mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 16:32:15 +00:00
test smtp connection before set up
This commit is contained in:
@@ -519,7 +519,7 @@ export default {
|
||||
wasabi: 'https://s3.' + val + '.wasabisys.com',
|
||||
backblaze: 'https://s3.' + val + '.backblazeb2.com',
|
||||
oss: 'https://' + val + '.aliyuncs.com',
|
||||
s3: 'https://s3.amazonaws.com',
|
||||
s3: 'https://s3.' + val + '.amazonaws.com',
|
||||
other: undefined,
|
||||
}[this.storage.driver]
|
||||
},
|
||||
@@ -947,7 +947,6 @@ export default {
|
||||
})
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
if (error.response.status === 401 && error.response.data.type === 's3-connection-error') {
|
||||
events.$emit('alert:open', {
|
||||
title: 'S3 Connection Error - Wrong Credentials or Not Permitted',
|
||||
@@ -990,10 +989,17 @@ export default {
|
||||
})
|
||||
})
|
||||
.catch((error) => {
|
||||
events.$emit('alert:open', {
|
||||
title: this.$t('popup_error.title'),
|
||||
message: this.$t('popup_error.message'),
|
||||
})
|
||||
if (error.response.status === 401 && error.response.data.type === 'mailer-connection-error') {
|
||||
events.$emit('alert:open', {
|
||||
title: 'Mailer Connection Error - Wrong Credentials',
|
||||
message: error.response.data.message,
|
||||
})
|
||||
} else {
|
||||
events.$emit('toaster', {
|
||||
type: 'danger',
|
||||
message: this.$t('popup_error.title'),
|
||||
})
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
this.isSendingEmailForm = false
|
||||
|
||||
Reference in New Issue
Block a user