1 parent
435595f061
commit
fe3e330577
5 files changed
+17
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
export const RECOVERY_CODE_DISPLAY_MS = 60 * 1000
|
||||
@@ -12,6 +12,7 @@ import {
|
||||
import { useGlobalStatusStore } from '@/stores/useGlobalStatusStore'
|
||||
import { normalizeCreationOptions, serializeCredential, webAuthnSupported } from '@/utils/webauthn'
|
||||
import { downloadRecoveryCodes } from '@/utils/recoveryCodeDownload'
|
||||
import { RECOVERY_CODE_DISPLAY_MS } from '@/utils/recoveryCodeDisplay'
|
||||
|
||||
export function usePage() {
|
||||
const globalStatus = useGlobalStatusStore()
|
||||
@@ -270,7 +271,7 @@ export function usePage() {
|
||||
|
||||
const scheduleRecoveryCodeHide = () => {
|
||||
clearTimeout(recoveryCodeHideTimer)
|
||||
recoveryCodeHideTimer = setTimeout(clearRecoveryCodes, 60000)
|
||||
recoveryCodeHideTimer = setTimeout(clearRecoveryCodes, RECOVERY_CODE_DISPLAY_MS)
|
||||
}
|
||||
|
||||
const revealRecoveryCodes = async () => {
|
||||
|
||||
+2
-1
@@ -7,6 +7,7 @@ import {
|
||||
isRecentAuthenticationCancelled,
|
||||
requestWithRecentAuthentication,
|
||||
} from '@/utils/recentAuthentication'
|
||||
import { RECOVERY_CODE_DISPLAY_MS } from '@/utils/recoveryCodeDisplay'
|
||||
|
||||
export const recoveryCodeDialogProps = {
|
||||
modelValue: {
|
||||
@@ -52,7 +53,7 @@ export function useRecoveryCodeDialog(props, emit) {
|
||||
|
||||
const scheduleHide = () => {
|
||||
clearTimeout(hideTimer)
|
||||
hideTimer = setTimeout(clearCodes, 60000)
|
||||
hideTimer = setTimeout(clearCodes, RECOVERY_CODE_DISPLAY_MS)
|
||||
}
|
||||
|
||||
const isCurrentView = (version, userID) => (
|
||||
|
||||
Reference in new issue
Block a user