mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-15 18:12:16 +00:00
org context, idp failure page, cleanup signup
This commit is contained in:
@@ -16,9 +16,15 @@ type Props = {
|
||||
userId: string;
|
||||
code: string;
|
||||
submit: boolean;
|
||||
organization?: string;
|
||||
};
|
||||
|
||||
export default function VerifyEmailForm({ userId, code, submit }: Props) {
|
||||
export default function VerifyEmailForm({
|
||||
userId,
|
||||
code,
|
||||
submit,
|
||||
organization,
|
||||
}: Props) {
|
||||
const { register, handleSubmit, formState } = useForm<Inputs>({
|
||||
mode: "onBlur",
|
||||
defaultValues: {
|
||||
@@ -50,6 +56,7 @@ export default function VerifyEmailForm({ userId, code, submit }: Props) {
|
||||
body: JSON.stringify({
|
||||
code: values.code,
|
||||
userId,
|
||||
organization,
|
||||
}),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user