Fixed post url and body

ref #30
This commit is contained in:
Nicolai Ort 2021-04-01 19:55:01 +02:00
parent 30f3a51ef8
commit 0795ea318d
1 changed files with 1 additions and 3 deletions

View File

@ -105,9 +105,7 @@ function resendMail() {
if (isEmail(user_email.value)) {
toast("sending password reset mail...");
const browserlocale = ((navigator.languages && navigator.languages[0]) || '').substr(0, 2);
axios.post(`${config.baseurl}api/runners/forgot/?locale=${browserlocale}`, {
"mail": user_email.value
})
axios.post(`${config.baseurl}api/runners/forgot?mail=${user_email.value}&locale=${browserlocale}`)
.then(({ data }) => {
console.log(data);
toast("sent password reset mail to " + user_email.value + "!");