Features/Memberships

Member sign up and log in

Let visitors create an account and log in on your site with email and password.

Memberships adds visitor accounts to a site. Visitors register with name, email and password and log in with email and password. Members are stored as items in a protected CMS collection called Memberships/Members. Forms are plain HTML forms in the Designer marked with the dh-membership attribute (register, login, logout). After success the visitor is sent to the redirect you configured. Use it for communities, courses, client portals or any site where content depends on who is logged in.

How it works

  • Install: installing the Memberships app creates two protected CMS collections, Memberships/Plans and Memberships/Members (config membership, protected, hideSEO, hideScheduling).
  • Members collection fields: email, password (Account); first-name, last-name, avatar (Profile); role (member/admin), status (active/suspended/pending), verified, plans (multi relation to Plans) (Membership); google-id (OAuth).
  • Email is lowercased; the item name is the email. Name required, valid email, password 6 to 128 characters. Duplicate email is refused. The name is split into first-name and last-name. role=member, status=active, verified=false. If a default plan is set it is assigned. A verification email is sent and the member is logged in right away.
  • Finds the member by item name, then by the email field (older records). Suspended accounts are refused; deleted accounts get the generic invalid message.
  • Logout: form or element with dh-membership="logout".
  • Rate limits (15 minute window): login 8 per IP+email and 40 per IP; register 5 per email and 30 per IP; forgot 5 per email and 20 per IP; reset 20 per IP. Message: "Too many attempts. Try again later."
  • Cookie lifetime 31 days.
  • Account changes from the account page need the session CSRF token in the X-CSRF-Token header.
  • Email verification is not required to log in.

When to use it

  • Online course site where students log in to see lessons
  • Client portal with a private area per customer
  • Community site with member profiles

Limitations

  • Members live in a CMS collection; extra profile fields are added in the CMS

Availability

  • Works in Designer and MCP.
  • Included in the Business and Professional plans.
  • Limits: Password 6 to 128 characters. Max 20 sessions per member (oldest removed). Rate limits per 15 min: login 8 per IP+email / 40 per IP; register 5 per email / 30 per IP.

How to use it.

  1. Install the Memberships app (it also installs CMS if needed and creates the login, register, forgot password, reset password and account verified pages)
  2. Open the created pages in the Designer and style the forms
  3. Set redirects in Memberships > Redirects

Questions.

Where are members stored?

What is the minimum password length?

How long does a login last?

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.