Finish code for updating email

This commit is contained in:
Dane Everitt 2019-06-24 21:43:46 -07:00
parent 438f1b06b9
commit da24f66563
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 134 additions and 20 deletions

View file

@ -0,0 +1,9 @@
import http from '@/api/http';
export default (email: string, password: string): Promise<void> => {
return new Promise((resolve, reject) => {
http.put('/api/client/account/email', { email, password })
.then(() => resolve())
.catch(reject);
});
};