summaryrefslogtreecommitdiff
path: root/src/store/modules
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-10-14 13:40:40 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-10-14 13:40:40 +0300
commitdf4d370a206d6418179d80b6e94da0f94d7aae2a (patch)
treeeae6e22ef1c664314f00f96e33ac054ba7dc2300 /src/store/modules
parent4fb16e0779596b2cea3b4d548cf2aef8e0efbb64 (diff)
downloadwebui-vue-df4d370a206d6418179d80b6e94da0f94d7aae2a.tar.xz
fix smtp send message
Diffstat (limited to 'src/store/modules')
-rw-r--r--src/store/modules/Settings/SmtpStore.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/store/modules/Settings/SmtpStore.js b/src/store/modules/Settings/SmtpStore.js
index 6762fa27..4312ecd9 100644
--- a/src/store/modules/Settings/SmtpStore.js
+++ b/src/store/modules/Settings/SmtpStore.js
@@ -89,6 +89,11 @@ const SmtpStore = {
async sendTestMessage(_, payload) {
return await api
.post('/redfish/v1/Smtp/SendMail', payload)
+ .then((res) => {
+ if (res.data.result === false) {
+ return res.data;
+ }
+ })
.catch((error) => console.log(error));
},
},