Debian Codegraph @

doc/sources/admin/register.rst

raw
1 Register a new account
2 ======================
3
4 Presentation
5 ------------
6
7 This feature is a page that allows a user to create an account.
8
9 **Kinematics:**
10
11 - User click on the button "Create a new account"
12 - They enter first name, last name and email
13 - They receive an email with a confirmation link
14 - After clicking, their account is created
15 - An email with his login and password is sent
16
17
18 Configuration
19 -------------
20
21 **Requirements**
22
23 - You have to activate the 'create a new account' linbuttonk in the login page.
24 Go in Manager, ``General Parameters`` » ``Portal`` » ``Customization`` » ``Buttons on login page`` » ``Register new account``.
25 See :ref:`portal customization<portalcustom-other-parameters>`.
26
27 - The SMTP server must be setup. See :doc:`SMTP server setup<smtp>`.
28
29
30 **Manager Configuration**
31
32 Go in ``General Parameters`` » ``Plugins`` » ``Register new account``:
33
34 - **Mail content:**
35
36 - **Confirmation mail subject**: subject of the email containing the confirmation link
37 - **Confirmation mail content**: content of the confirmation email sent to the user. If blank, the ``mail_register_confirm`` HTML template will be used. Confirmation link is stored in the ``$url`` variable
38 - **Credentials mail subject**: subject of the email providing login and password
39 - **Credentials mail content**: content of the credentials email sent to the user. If blank, the ``mail_register_done`` HTML template will be used. Login and generated password are stored in the corresponding ``$login`` and ``$password`` variables.
40
41
42 - **Other:**
43
44 - **Register page URL**: URL of register page (default: [PORTAL]/register)
45 - **Validity time of a register request**: duration in seconds of a new account request. The request will be invalidated after this delay if user does not click on the link.
46
47
48 .. note::
49
50 Following variables are available in:
51
52 \* Register email body => ``$expMailDate``, ``$expMailTime``, ``$url``, ``$mail``, ``$firstname``, ``$lastname`` and ``$ipAddr``
53
54 \* Done email body => ``$login``, ``$password`` and ``$url``