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

10 lines
349 B
TypeScript
Raw Permalink 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 })
.then((response) => resolve(response.data.status || ''))
2019-06-12 05:02:18 +00:00
.catch(reject);
});
};