feature/30-profile-forgot-link #35

Merged
philipp merged 6 commits from feature/30-profile-forgot-link into dev 2021-04-02 19:00:52 +00:00
Showing only changes of commit 0795ea318d - Show all commits

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 + "!");