mirror of
https://github.com/docmost/docmost.git
synced 2026-07-27 09:44:42 +10:00
sync
This commit is contained in:
@@ -47,7 +47,6 @@ interface MfaSetupModalProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface SetupData {
|
interface SetupData {
|
||||||
secret: string;
|
|
||||||
qrCode: string;
|
qrCode: string;
|
||||||
manualKey: string;
|
manualKey: string;
|
||||||
}
|
}
|
||||||
@@ -101,7 +100,6 @@ export function MfaSetupModal({
|
|||||||
const enableMutation = useMutation({
|
const enableMutation = useMutation({
|
||||||
mutationFn: (verificationCode: string) =>
|
mutationFn: (verificationCode: string) =>
|
||||||
enableMfa({
|
enableMfa({
|
||||||
secret: setupData!.secret,
|
|
||||||
verificationCode,
|
verificationCode,
|
||||||
}),
|
}),
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
|
|||||||
@@ -31,12 +31,10 @@ export interface MfaSetupRequest {
|
|||||||
export interface MfaSetupResponse {
|
export interface MfaSetupResponse {
|
||||||
method: string;
|
method: string;
|
||||||
qrCode: string;
|
qrCode: string;
|
||||||
secret: string;
|
|
||||||
manualKey: string;
|
manualKey: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface MfaEnableRequest {
|
export interface MfaEnableRequest {
|
||||||
secret: string;
|
|
||||||
verificationCode: string;
|
verificationCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule apps/server/src/ee updated: 2e1b2c332f...4ab5ff2198
Reference in New Issue
Block a user