Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/api/account/disableAccountTwoFactor.ts
7461 views
1
import http from '@/api/http';
2
3
function disableAccountTwoFactor(password: string): Promise<void> {
4
return new Promise((resolve, reject) => {
5
http.post('/api/client/account/two-factor/disable', { password })
6
.then(() => resolve())
7
.catch(reject);
8
});
9
}
10
11
export default disableAccountTwoFactor;
12
13