Show success message to the user

This commit is contained in:
Dane Everitt
2019-06-11 23:19:43 -07:00
parent 435626f4b7
commit 19ef901768
3 changed files with 8 additions and 8 deletions

View File

@@ -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);
});
};