lemonldap-ng/doc/sources/admin/register.rst

46 lines
1.8 KiB
ReStructuredText
Raw Normal View History

2020-05-14 23:29:41 +02:00
Register a new account
======================
Presentation
------------
2021-07-27 23:01:24 +02:00
This feature is a page that allows a user to create an account.
2021-08-02 18:53:45 +02:00
Following steps are performed:
2020-05-14 23:29:41 +02:00
#. User click on the button "Create a new account"
2021-08-02 18:53:45 +02:00
#. They enter first name, last name and email
#. They receive an email with a confirmation link
#. After clicking, their account is created
#. An email with his login and password is sent
2020-05-14 23:29:41 +02:00
Configuration
-------------
2021-07-27 23:01:24 +02:00
The "Create your account" button can be enabled in
:doc:`Portal customization parameters<portalcustom>`.
2020-05-14 23:29:41 +02:00
2021-07-27 23:01:24 +02:00
Then, go in ``General Parameters`` > ``Plugins`` > ``Register new account``:
2020-05-14 23:29:41 +02:00
2021-07-27 23:01:24 +02:00
- **Module**: Backend used for creating new account.
2020-05-14 23:29:41 +02:00
- **Page URL**: URL of register page
2021-07-27 23:01:24 +02:00
- **Validity time of a register request**: Duration in seconds of a new
2020-05-14 23:29:41 +02:00
account request. The request will be deleted after this time if user
do not click on the link.
2021-07-27 23:01:24 +02:00
- **Subject for confirmation mail**: Subject of the email containing the
2020-05-14 23:29:41 +02:00
confirmation link
2021-07-27 23:01:24 +02:00
- **Body for confirmation mail**: The plain text content of the confirmation email the user will
receive. If you leave it blank, the ``mail_register_confirm`` HTML template will be used.
Confirmation link is stored in the ``$url`` variable
- **Subject for done mail**: Subject of the email providing login and password.
- **Body for done mail**: The plain text content of the done email the user will
receive. If you leave it blank, the ``mail_register_done`` HTML template will be used.
Login and generated password are stored in the corresponding ``$login`` and ``$password`` variables
.. note::
Following variables are available in:
\* Register email body => ``$expMailDate``, ``$expMailTime``, ``$url``, ``$mail``, ``$firstname``, ``$lastname`` and ``$ipAddr``
\* Done email body => ``$login``, ``$password`` and ``$url``