Skip to content

Commit 67d7b25

Browse files
committed
we no longer auto-submit the code in the loader
1 parent 135cc71 commit 67d7b25

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

app/routes/_auth+/verify.server.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { handleVerification as handleChangeEmailVerification } from '#app/routes
66
import { twoFAVerificationType } from '#app/routes/settings+/profile.two-factor.tsx'
77
import { requireUserId } from '#app/utils/auth.server.ts'
88
import { prisma } from '#app/utils/db.server.ts'
9-
import { ensurePrimary } from '#app/utils/litefs.server.ts'
109
import { getDomainUrl } from '#app/utils/misc.tsx'
1110
import { redirectWithToast } from '#app/utils/toast.server.ts'
1211
import { generateTOTP, verifyTOTP } from '#app/utils/totp.server.ts'
@@ -168,10 +167,6 @@ export async function validateRequest(
168167
)
169168
}
170169

171-
// this code path could be part of a loader (GET request), so we need to make
172-
// sure we're running on primary because we're about to make writes.
173-
await ensurePrimary()
174-
175170
const { value: submissionValue } = submission
176171

177172
async function deleteVerification() {

0 commit comments

Comments
 (0)