mirror of
https://github.com/docmost/docmost.git
synced 2026-07-06 22:54:28 +10:00
sync
This commit is contained in:
@@ -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
Submodule apps/server/src/ee updated: 2e1b2c332f...4ab5ff2198
Reference in New Issue
Block a user