Skip to main content

Change password

Form to update the password of a user.

Route name

user_account_change_password

URL pattern

/account/change-password

Layout

Form

Module

MyAccount

Page class

password-reset-form

Acceptance criteria

  • Must have valid user session to view
  • Redirects to https if ssl is enabled
  • Redirects to appropriate url if user adapter change password page is specified
  • Redirects to index and error message shown if user not logged in
  • Form includes old password field, new password field, new password confirmation field and submit button
  • 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 new password is not the same as new password confirmation
  • If no errors found, password is updated
  • If password is updated, reset code is disabled.
  • If password is updated, redirects to user home, success message shown
  • Breadcrumb includes user account link