Add ability to disable two factor authentication
This commit is contained in:
parent
2a653cdd8d
commit
9a0ed6b291
4 changed files with 107 additions and 3 deletions
9
resources/scripts/api/account/disableAccountTwoFactor.ts
Normal file
9
resources/scripts/api/account/disableAccountTwoFactor.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (password: string): Promise<void> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.delete('/api/client/account/two-factor', { params: { password } })
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue