Invite prefill email (#43)
* Add prepopulation of email field in sign-up form * Updated packages
This commit is contained in:
committed by
GitHub
parent
4f0e6b9bbb
commit
21f42f14ce
@@ -28,10 +28,14 @@ export function MagicLinkAuthContainer({
|
||||
inviteToken,
|
||||
redirectUrl,
|
||||
shouldCreateUser,
|
||||
defaultValues,
|
||||
}: {
|
||||
inviteToken?: string;
|
||||
redirectUrl: string;
|
||||
shouldCreateUser: boolean;
|
||||
defaultValues?: {
|
||||
email: string;
|
||||
};
|
||||
}) {
|
||||
const { captchaToken, resetCaptchaToken } = useCaptchaToken();
|
||||
const { t } = useTranslation();
|
||||
@@ -44,7 +48,7 @@ export function MagicLinkAuthContainer({
|
||||
}),
|
||||
),
|
||||
defaultValues: {
|
||||
email: '',
|
||||
email: defaultValues?.email ?? ''
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user