Public Access
feat(registration): add email confirmation UI
New ConfirmEmailPage for users to verify their email and set password. Resend form on registration and error pages. Registration form no longer asks for a password. Confirmation requires a button click. The admin list marks unconfirmed requests and offers only delete for them.
This commit is contained in:
1 parent
249973dd69
commit
6dda186bdf
15 files changed
+416
-50
No files matched your search
@@ -24,12 +24,16 @@ const displayNameField = z
|
||||
message: 'VALIDATION.DISPLAY_NAME_INVALID',
|
||||
});
|
||||
|
||||
export const registrationSchema = z
|
||||
// No password: the address owner chooses it on the confirm page.
|
||||
export const registrationSchema = z.object({
|
||||
email: emailField,
|
||||
displayName: displayNameField,
|
||||
});
|
||||
|
||||
export const confirmEmailSchema = z
|
||||
.object({
|
||||
email: emailField,
|
||||
password: passwordField,
|
||||
passwordConfirmation: z.string().min(1, 'VALIDATION.PASSWORD_CONFIRMATION_REQUIRED'),
|
||||
displayName: displayNameField,
|
||||
})
|
||||
.refine((d) => d.password === d.passwordConfirmation, {
|
||||
path: ['passwordConfirmation'],
|
||||
|
||||
Reference in new issue
Block a user