mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Add ability to disable two factor authentication
This commit is contained in:
9
resources/scripts/api/account/disableAccountTwoFactor.ts
Normal file
9
resources/scripts/api/account/disableAccountTwoFactor.ts
Normal 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);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user