Update totp disable modal; require password for enable operation
This commit is contained in:
parent
92926ca193
commit
2d836156d2
10 changed files with 182 additions and 121 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue