RegisterForm

Domain

Registration form with email, password, and confirm-password fields. Real-time password match validation and server-error support.

Default

Preview

Minimum 8 characters

Code
<%- include('modules/domain/common/auth/RegisterForm', {
  action: '/auth/register',
  method: 'post'
}) %>

With field errors

Preview

Enter a valid email address.

Password must be at least 8 characters.

Code
<%- include('modules/domain/common/auth/RegisterForm', {
  action: '/auth/register',
  errors: {
    email: 'Enter a valid email address.',
    password: 'Password must be at least 8 characters.'
  }
}) %>
Source modules/domain/common/auth/RegisterForm.ejs