misc_pterodactyl-panel/resources/scripts/api/account/disableAccountTwoFactor.ts

10 lines
286 B
TypeScript
Raw Permalink Normal View History

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