[Forgot, reset] Connected to BE

This commit is contained in:
Matej Glasnák committed 2023-03-29 22:46:28 +02:00
1 parent 850b400a8c
commit 04774b0fb3
6 files changed
+10 -24

No files matched your search

+2 -2
View File
@@ -86,7 +86,7 @@ export default {
// eslint-disable-next-line
forgotPassword({commit}: {commit: any}, credentials: any) {
return new Promise((resolve, reject) => {
axios.post_auth_data('v1/users/forgot', credentials)
axios.post('v1/users/forgot', {data: credentials})
.then(response => resolve(response))
.catch(error => reject(error))
})
@@ -94,7 +94,7 @@ export default {
// eslint-disable-next-line
resetPassword({commit}: {commit: any}, credentials: any) {
return new Promise((resolve, reject) => {
axios.post_auth_data('v1/users/reset', credentials)
axios.post_auth_data('v1/users/reset', {data: credentials})
.then(response => resolve(response))
.catch(error => reject(error))
})