mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 10:53:44 +00:00
verify email
This commit is contained in:
@@ -2,7 +2,7 @@ import VerifyEmailForm from "#/ui/VerifyEmailForm";
|
||||
import { ExclamationTriangleIcon } from "@heroicons/react/24/outline";
|
||||
|
||||
export default async function Page({ searchParams }: { searchParams: any }) {
|
||||
const { userID, code, orgID, loginname, passwordset } = searchParams;
|
||||
const { userID, code, submit, orgID, loginname, passwordset } = searchParams;
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center space-y-4">
|
||||
@@ -12,7 +12,11 @@ export default async function Page({ searchParams }: { searchParams: any }) {
|
||||
</p>
|
||||
|
||||
{userID ? (
|
||||
<VerifyEmailForm userId={userID} />
|
||||
<VerifyEmailForm
|
||||
userId={userID}
|
||||
code={code}
|
||||
submit={submit === "true"}
|
||||
/>
|
||||
) : (
|
||||
<div className="w-full flex flex-row items-center justify-center border border-yellow-600/40 dark:border-yellow-500/20 bg-yellow-200/30 text-yellow-600 dark:bg-yellow-700/20 dark:text-yellow-200 rounded-md py-2 scroll-px-40">
|
||||
<ExclamationTriangleIcon className="h-5 w-5 mr-2" />
|
||||
|
||||
Reference in New Issue
Block a user