CMS Ametys may offer visitors to the site the possibility of creating user accounts enabling them to authenticate themselves on the site and access pages with limited access.
Two services are used for this purpose:
The two services are complementary and cannot function without each other.
Select a site page and a zone of your choice. Go to the "Add a service" menu and click on "Register" to insert the account creation form.
The page containing the service must be publicly accessible.
Service configuration
Parameters | Description | Mandatory |
---|---|---|
Title | Service title Ex: "Register", "Create an account", ... | No |
User directory |
Population and directory to be used for new accounts |
Yes |
User content type |
This parameter is only available if your application uses plugin Directory. It is used to select a type of "User" content (user file) to be created when the account is created. Leave empty if new accounts are not to be linked to a user record |
No |
Display T&Cs |
T&C display mode. Three options to choose from: - Never - Insert text in registration form - Check box with link to T&C page |
Yes |
T&C page |
Optional page describing account terms and conditions. Select a page from the sitemap. This parameter is active only if the T&Cs display mode selected is "Link to T&Cs page". | No |
Wording of the link to the T&Cs |
Title of the link to the page describing the general conditions of use. This parameter is active only if the T&Cs display mode selected is "Link to T&Cs page". | No |
Content of the GCU |
Content describing the general conditions of use of the account, to be inserted in the registration form.
This parameter is active only if the T&Cs display mode selected is "Text in registration form". |
No |
Registration validation |
Choice of desired behavior at the end of registration from 3 options: - Display a standard message - Display a standard message and a link to a page - Insert final content |
Yes |
Success page |
Selection of the page to which the user will be redirected at the end of the registration process.
This parameter is only active if the "Display a standard message and a link to a page" option has been selected.
The choice of page is up to you, and can be as simple as the site's home page. However, it is advisable to choose a limited-access page containing the "User Preferences" service. To find out how to use this service, go to the page dedicated to the "User Preferences" service. |
No |
Text of the link to the success page |
You can choose a personalized text for the link to the success page. For example: "You can now log in to your account". By default, the link text will be "Click here to go to page " + page title
This parameter is only active if the "Display a standard message and a link to a page" option has been selected. |
No |
Final content |
Selection of the final content to be inserted once the account has been created.
This parameter is active only if the "Show content below" option has been selected. |
No |
Display | Choice of form rendering. Depends on the graphic charter used. | Yes |
At this stage, not all the conditions required to use the service have been met. In the CMS tool, the service displays an orange box with all the conditions still to be met:
Tag the page containing this service with the label "Site user accounts > Registration page".
In order to function, the service must also ensure that the T&C page or content, as well as the final page or content, are accessible on the site. If this is not the case, an alert will be displayed in the back-office.
Below is an example of how the form will look once all the conditions have been met.
At the start of the registration process, visitors will be asked only for their e-mail address.
Depending on the site's configuration parameters, the form may be protected by a captcha.
Visitors who register do not choose a password in the registration form. When a user registers, his account is only validated after verification of the address mail given.
To do this, a mail is sent to the address mail given in the form, which contains a link. Only by clicking on this link can the visitor choose his password and validate the creation of his account.
Here's an example of a message that could be displayed to the visitor after validation of the registration form:
The link in mail redirects to a page containing a password creation form as above:
The form depends on the service parameters and your graphic workload.
The form contains at least the fields Name, First name and password creation.
If you have plugin Directory and have chosen a user content type, the content type fields will be displayed in sequence.
The password modification form allows a registered user to recreate his password if he forgets it. See below for a password recovery scenario.
The form is inserted into a site page via the"Password" service.
Select a site page and a zone of your choice. Go to the "Add a service" menu and click on "Password" to insert the form.
Service configuration
Label this page"Password change page".
Please note that this page must be restricted. See the documentation on limiting access to a page.
If a site visitor tries to access a restricted-access page on the site without being authenticated, they are automatically redirected to a page inviting them to log in.
If the creation of visitor accounts is correctly set up, a "Forgot your password?" link allows you to retrieve your password should you forget it.
The user is then redirected to a form inviting him to enter his e-mail login address:
A few seconds later he'll receive a mail with a link allowing him to redefine a password.