2019-06-11 22:02:18 -07:00
|
|
|
import http from '@/api/http';
|
|
|
|
|
2020-08-01 21:08:35 -07:00
|
|
|
export default (email: string, recaptchaData?: string): Promise<string> => {
|
2019-06-11 22:02:18 -07:00
|
|
|
return new Promise((resolve, reject) => {
|
2020-08-01 21:08:35 -07:00
|
|
|
http.post('/auth/password', { email, 'g-recaptcha-response': recaptchaData })
|
2019-06-11 23:19:43 -07:00
|
|
|
.then(response => resolve(response.data.status || ''))
|
2019-06-11 22:02:18 -07:00
|
|
|
.catch(reject);
|
|
|
|
});
|
|
|
|
};
|