| 1 |
E-Mail as Second Factor |
| 2 |
======================= |
| 3 |
|
| 4 |
This plugin adds the user's e-mail account as a second authentication |
| 5 |
factor. |
| 6 |
|
| 7 |
After logging in through another authentication module, a one-time code |
| 8 |
will be generated by the portal and sent to the user's e-mail address. |
| 9 |
The user will be prompted for this code in order to finish the login |
| 10 |
process. |
| 11 |
|
| 12 |
|
| 13 |
.. attention:: |
| 14 |
|
| 15 |
This plugin will only improve security in situations |
| 16 |
where the user's email is not protected by the same password used to |
| 17 |
login on LemonLDAP::NG. And of course, if the user's email account is |
| 18 |
also protected by LemonLDAP::NG, they will not be able to open their |
| 19 |
mailbox to find out their one-time code. |
| 20 |
|
| 21 |
Configuration |
| 22 |
~~~~~~~~~~~~~ |
| 23 |
|
| 24 |
Before configuring this module, make sure the user's email address is |
| 25 |
correctly fetched from your UserDB plugin and appears in the session |
| 26 |
browser. If you want to store the user e-mail in a different session |
| 27 |
field than ``mail``, go to "General Parameters » Advanced parameters » |
| 28 |
SMTP" and set the "Session key containing mail address" parameter. |
| 29 |
|
| 30 |
All parameters are configured in "General Parameters » Second factors » |
| 31 |
Mail second factor". |
| 32 |
|
| 33 |
- **Activation**: Set to ``On`` to activate this module. If a user does |
| 34 |
not have an email address, they will encounter an error on login. If |
| 35 |
you want to use this plugin only for users who have an email address, |
| 36 |
use ``$mail`` (or whatever your e-mail session key is) as the |
| 37 |
activation rule. |
| 38 |
- **Code regex**: The regular expression used to generate one-time |
| 39 |
codes. The default is a 6-digit code. |
| 40 |
- **Code timeout**: It might take a while for users to open their |
| 41 |
e-mail account and find the code. Raise this timeout if the default |
| 42 |
(2 minutes) isn't enough. |
| 43 |
- **Mail subject**: The subject of the email the user will receive. If |
| 44 |
you leave it blank, it will be looked up in translation files. |
| 45 |
- **Mail body**: The plain text content of the email the user will |
| 46 |
receive. If you leave it blank, the ``mail_2fcode`` HTML template |
| 47 |
will be used. The one-time code is stored in the ``$code`` variable |
| 48 |
- **Re-send interval**: Set this to a non-empty value to allow the user to |
| 49 |
re-send the code in case a transmission error occured. The value sets how |
| 50 |
many seconds the user has to wait before each attempt |
| 51 |
- **Authentication level** (Optional): if you want to overwrite the |
| 52 |
value sent by your authentication module, you can define here the new |
| 53 |
authentication level. Example: 5 |
| 54 |
- **Label** (Optional): label that should be displayed to the user on |
| 55 |
the choice screen |
| 56 |
- **Logo** (Optional): logo file *(in static/<skin> directory)* |