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