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

10 lines
284 B
TypeScript
Raw Normal View History

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