Add ability to disable two factor authentication

This commit is contained in:
Dane Everitt 2019-12-22 20:41:25 -08:00
parent 2a653cdd8d
commit 9a0ed6b291
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 107 additions and 3 deletions

View 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);
});
};