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