Skip to main content

Register

Form to create a new user account.

Route name

user_registration

URL pattern

/register

Layout

Form

Module

MyAccount

Page class

registration-form

Acceptance criteria

  • Redirects to https if ssl is enabled
  • Redirects to change details if valid user session
  • Redirects to sign in if user adapter register is disabled
  • Form includes csrf token, email address field, email address confirmation, password, password confirmation and register submit button
  • Salutation field, forename, surname, birthday, age, sex, occupation, company, address, city, county, postcode, country, telephone, mobile, fax, website, data protection and targetting question fields when enabled in register preferences
  • Error message is shown if CSRF token invalid on submission
  • Error message is shown if password is less than 6 characters
  • Error message is shown if password is greater than 30 characters
  • Error message is shown if password is not the same as password confirmation
  • Error message is shown if email address is empty
  • Error message is shown if email address is not a string in email address format
  • Error message is shown if email address matches a different registered user
  • Error message is shown if email address is not the same as email confirmation
  • Error message is shown if salutation is not one of Mr, Miss, Mrs, Ms, Mx, Dr or other
  • Error message is shown if forename is blank
  • Error message is shown if surname is blank
  • Error message is shown if birthday is not a valid date
  • Error message is shown if birthday is in the future
  • Error message is shown if age is not a number
  • Error message is shown if age is blank
  • Error message is shown if sex is not one of “Male” or “Female”
  • Error message is shown if address is blank
  • Error message is shown if city is blank
  • Error message is shown if postcode is blank or includes non alphanumeric characters
  • Error message is shown if country is blank
  • Error message is shown if an answer is not supplied for targetting question
  • If errors are found, submitted values are shown in form fields
  • If no errors found, user is registered
  • If email authentication is enabled, authentication email is sent, redirected to index and info message is shown
  • If user is registered, redirected to user home and success message shown