summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-10-10 15:16:27 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-10-10 15:16:27 +0300
commit706c92b4f739a3665ae4d38121dfc056809cb912 (patch)
treeb9dae6a99945b65aabb003dffb153f336bdf2f8d
parente037bc458fb62ab913840bacb7f0ce0b78f0e4d1 (diff)
downloadwebui-vue-706c92b4f739a3665ae4d38121dfc056809cb912.tar.xz
fix smtp
-rw-r--r--src/store/modules/Settings/SmtpStore.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/store/modules/Settings/SmtpStore.js b/src/store/modules/Settings/SmtpStore.js
index 195f245a..4be69783 100644
--- a/src/store/modules/Settings/SmtpStore.js
+++ b/src/store/modules/Settings/SmtpStore.js
@@ -87,12 +87,13 @@ const SmtpStore = {
},
async sendTestMessage(_, payload) {
- let url = `/redfish/v1/Smtp/SendMail`;
- for (let key in payload) {
- url += `&${key}=${payload[key]}`;
- }
-
- return await api.get(url);
+ return await api
+ .post('/redfish/v1/Smtp/SendMail', payload)
+ .catch((error) => console.log(error));
+ // let url = `/redfish/v1/Smtp/SendMail`;
+ // for (let key in payload) {
+ // url += `&${key}=${payload[key]}`;
+ // }
},
},
};