fix!: use POST
instead of DELETE
when disabling 2FA
Signed-off-by: Matthew Penner <me@matthewp.io>
This commit is contained in:
parent
3a0b7d13a9
commit
75b59080e2
2 changed files with 6 additions and 4 deletions
|
@ -1,9 +1,11 @@
|
|||
import http from '@/api/http';
|
||||
|
||||
export default (password: string): Promise<void> => {
|
||||
function disableAccountTwoFactor(password: string): Promise<void> {
|
||||
return new Promise((resolve, reject) => {
|
||||
http.delete('/api/client/account/two-factor', { params: { password } })
|
||||
http.post('/api/client/account/two-factor/disable', { password })
|
||||
.then(() => resolve())
|
||||
.catch(reject);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
export default disableAccountTwoFactor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue