mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 22:39:34 +00:00
[Forgot, reset] Connected to BE
This commit is contained in:
1 parent
850b400a8c
commit
04774b0fb3
6 files changed
+10
-24
No files matched your search
@@ -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))
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user