Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/api/account/updateAccountEmail.ts
7461 views
1
import http from '@/api/http';
2
3
export default (email: string, password: string): Promise<void> => {
4
return new Promise((resolve, reject) => {
5
http.put('/api/client/account/email', { email, password })
6
.then(() => resolve())
7
.catch(reject);
8
});
9
};
10
11