Member registration and members-only areas
This page is for website creators who give visitors accounts: a members area, an intranet, a customer portal, or simply comments under a name.
Contents
- The pages involved
- Registration settings
- A members role
- A members-only area
- Passwords and sign-in security
- Checklist
The pages involved
| Page | View | Open to visitors by |
|---|---|---|
| Register | user/register | site.ini [SiteAccessSettings] AnonymousAccessList[] |
| Registration done | user/success | the same |
| Activate the account (link in the mail) | user/activate | the same |
| Forgot password | user/forgotpassword | the same |
| Log in, log out | user/login, user/logout | always |
| Edit own account | user/edit | logged in |
Override their templates (user/register.tpl, user/login.tpl ...) in your design so they look like the site.
Registration settings
site.ini [UserSettings]:
| Key | Meaning |
|---|---|
DefaultUserPlacement | the node of the user group new users are placed in (shipped 12) |
VerifyUserType | email: the account is activated by a link in a mail |
RegistrationEmail | who is told about new registrations |
PasswordInRegistrationEmail | disabled: the password is never mailed |
MinPasswordLength, WeakPasswordCheck | password rules (Modern password change) |
Create a user group "Members" and set DefaultUserPlacement to its node in the public siteaccess, so registrations
never land in an editors' group.
A members role
Create a role "Member" with content/read for the members section and user/login for the public siteaccess, and
assign it to the Members group (Roles and policies). Give it nothing else.
A members-only area
Assign the members' folder to its own section, which Anonymous may not read
(Sections and object states). Visitors who open it are asked to
log in. A whole siteaccess can require login instead ([SiteAccessSettings] RequireUserLogin=true in its settings),
which suits an intranet.
Passwords and sign-in security
- Password reset is built in and its keys expire (Reset user password).
- Two-step login for members is available (Two-factor login).
- Sessions and logouts: Sessions.
Checklist
- To do: Registration places users in the Members group only.
- To do: E-mail verification on; CAPTCHA on the user class (Spam protection).
- To do: The Member role grants only what members need.
- To do: The registration form says what data is kept and why.
- To do: Inactive and unverified accounts are cleaned up (User hygiene).
Related pages
- What visitors may see: the Anonymous role
- Accounts and sign-in
- Sections and object states for site builders
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.