Show success message to the user
This commit is contained in:
parent
435626f4b7
commit
19ef901768
3 changed files with 8 additions and 8 deletions
|
@ -1,9 +1,9 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (email: string): Promise<void> => {
|
||||
export default (email: string): Promise<string> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.post('/auth/password', { email })
|
||||
.then(() => resolve())
|
||||
.then(response => resolve(response.data.status || ''))
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue