7
0
mirror of https://github.com/pelican-dev/panel.git synced 2025-06-09 20:58:59 +02:00

10 lines
347 B
TypeScript

import http from '@/api/http';
export default (email: string, recaptchaData?: string): Promise<string> => {
return new Promise((resolve, reject) => {
http.post('/auth/password', { email, 'g-recaptcha-response': recaptchaData })
.then(response => resolve(response.data.status || ''))
.catch(reject);
});
};