misc_pterodactyl-panel/resources/scripts/api/auth/requestPasswordResetEmail.ts

10 lines
347 B
TypeScript
Raw Normal View History

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