Registration, login and privacy

How people become customers and sign in is set in one place: Settings → Customer settings. It has four tabs - Customer, Security, Customer form fields and Address form fields.

Customer settings, Customer tab: registration method Standard, customer name format, switches for notifications, e-mail changes, account export and deletion, and the tabs shown in My account
Settings → Customer settings.

Registration method

MethodWhat happens
StandardThe account is active as soon as the form is sent.
Email validationThe customer must click a link in an activation e-mail first.
Admin approvalA staff member activates the account (set Active on the customer). Use it for B2B shops.
DisabledNo new registrations; guest checkout may still be allowed in the Sales settings.

Other switches on the same tab: Notify about new customer registration (an e-mail to you), Allow users to change email, Usernames enabled (sign in with a user name instead of e-mail), New customer has a free shipping for the first order, and which tabs of My account are hidden (downloads, auctions, reviews, courses, documents...).

Passwords and sign-in security

The Security tab:

SettingWhat it does
Regular Expression for password validationThe password rule, for example a minimum length and a digit. The message shown to customers explains it.
Default password formatHow new passwords are stored. Keep the hashed default; never store clear text.
Unduplicated passwords numberHow many previous passwords cannot be reused.
Password lifetimeDays after which a customer must change the password (0 = never). Applies to customer groups that enforce it.
Maximum login failures, Lockout timeAfter this many wrong passwords the account is locked for the given minutes. Slows down password guessing.
Password recovery link. Days validHow long a "forgot password" link works.
Two factor authentication enabled, typeLets customers protect their account with a second factor - an authenticator app, or a code by e-mail or SMS depending on the plugins installed.

External sign-in with Google or Facebook is provided by the authentication plugins under Plugins → External authentication methods.

Privacy: customers' own data

  • Allow users to export account adds a button in My account that downloads the customer's data.
  • Allow users to delete account lets customers delete their account themselves.
  • Staff can export or delete a customer's data from the customer's page in the admin.
  • The newsletter box can require an explicit opt-in, and the Newsletter box. Allow to unsubscribe switch shows an unsubscribe option.

What customers see in My account:

The storefront Customer info page in My account with first name, last name, e-mail and the newsletter option, and the account menu with addresses, orders, returns, loyalty points and reviews
My account → Customer info.

Tips and common mistakes

  • With Email validation, make sure outgoing e-mail works first (message templates and e-mail accounts), or nobody can finish registering.
  • Changing the password rule does not affect existing passwords until they are changed.

Question not answered here? Ask the community on GitHub Discussions ↗