Skip to content

Commit 6787fa0

Browse files
committed
fix: CSRF token in email verification form
1 parent f7ffbc3 commit 6787fa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/client/src/pages/UserAuth/VerifyUser.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as Sentry from "@sentry/react";
66
import { EMAIL_VERIFICATION_PATH } from "ee/constants/ApiConstants";
77
import { Redirect } from "react-router-dom";
88
import { VerificationErrorType } from "./VerificationError";
9+
import CsrfTokenInput from "pages/UserAuth/CsrfTokenInput";
910

1011
const VerifyUser = (
1112
props: RouteComponentProps<{
@@ -47,6 +48,7 @@ const VerifyUser = (
4748
return (
4849
<Container title={"Verifying"}>
4950
<form action={submitUrl} id="verification-form" method="POST">
51+
<CsrfTokenInput />
5052
{Array.from(queryParams.entries()).map((param) => {
5153
return (
5254
<input

0 commit comments

Comments
 (0)