Finish code for updating email
This commit is contained in:
parent
438f1b06b9
commit
da24f66563
6 changed files with 134 additions and 20 deletions
9
resources/scripts/api/account/updateAccountEmail.ts
Normal file
9
resources/scripts/api/account/updateAccountEmail.ts
Normal 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);
|
||||
});
|
||||
};
|
Reference in a new issue