mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-03 12:55:41 -05:00
Update totp disable modal; require password for enable operation
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import http from '@/api/http';
|
||||
|
||||
export default async (code: string): Promise<string[]> => {
|
||||
const { data } = await http.post('/api/client/account/two-factor', { code });
|
||||
export default async (code: string, password: string): Promise<string[]> => {
|
||||
const { data } = await http.post('/api/client/account/two-factor', { code, password });
|
||||
|
||||
return data.attributes.tokens;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user