sync
This commit is contained in:
parent
303b6a048f
commit
186a0bf71b
3 changed files with 1 additions and 5 deletions
|
|
@ -47,7 +47,6 @@ interface MfaSetupModalProps {
|
|||
}
|
||||
|
||||
interface SetupData {
|
||||
secret: string;
|
||||
qrCode: string;
|
||||
manualKey: string;
|
||||
}
|
||||
|
|
@ -101,7 +100,6 @@ export function MfaSetupModal({
|
|||
const enableMutation = useMutation({
|
||||
mutationFn: (verificationCode: string) =>
|
||||
enableMfa({
|
||||
secret: setupData!.secret,
|
||||
verificationCode,
|
||||
}),
|
||||
onSuccess: (data) => {
|
||||
|
|
|
|||
|
|
@ -31,12 +31,10 @@ export interface MfaSetupRequest {
|
|||
export interface MfaSetupResponse {
|
||||
method: string;
|
||||
qrCode: string;
|
||||
secret: string;
|
||||
manualKey: string;
|
||||
}
|
||||
|
||||
export interface MfaEnableRequest {
|
||||
secret: string;
|
||||
verificationCode: string;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 2e1b2c332f0b854e7b7230e0c1a409a9ef3eac83
|
||||
Subproject commit 4ab5ff21984f09aaea4532b0658c212ef021402d
|
||||
Loading…
Reference in a new issue