7
0
mirror of https://github.com/pelican-dev/panel.git synced 2025-06-09 16:19:00 +02:00
2019-12-22 20:41:25 -08:00

10 lines
286 B
TypeScript

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