Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
documentation:2.1:mail2f [2019/02/04 13:14]
coudot [E-Mail as Second Factor]
documentation:2.1:mail2f [2019/02/04 13:16] (current)
coudot [Configuration]
Line 12: Line 12:
 ==== Configuration ==== ==== Configuration ====
  
-Before configuring this module, make sure the user's email address ​if correctly fetched from your UserDB plugin and appears in the session browser. If you want to store the user e-mail in a different session field than ''​mail'',​ go to "​General Parameters » Advanced parameters » SMTP" and set the "​Session key containing mail address"​ parameter.+Before configuring this module, make sure the user's email address ​is correctly fetched from your UserDB plugin and appears in the session browser. If you want to store the user e-mail in a different session field than ''​mail'',​ go to "​General Parameters » Advanced parameters » SMTP" and set the "​Session key containing mail address"​ parameter.
  
  
 All parameters are configured in "​General Parameters » Second factors » Mail second factor"​. All parameters are configured in "​General Parameters » Second factors » Mail second factor"​.
-  * **Activation**:​ Set to ''​On''​ to activate this module. If a user does not have an email address, they will encounter an error on login. If you want to use this plugin only for users who have an email address, ​user ''​$mail''​ (or whatever your e-mail session key is) as the activation rule.+  * **Activation**:​ Set to ''​On''​ to activate this module. If a user does not have an email address, they will encounter an error on login. If you want to use this plugin only for users who have an email address, ​use ''​$mail''​ (or whatever your e-mail session key is) as the activation rule.
   * **Code regex**: The regular expression used to generate one-time codes. The default is a 6-digit code.   * **Code regex**: The regular expression used to generate one-time codes. The default is a 6-digit code.
   * **Code timeout**: It might take a while for users to open their e-mail account and find the code. Raise this timeout if the default (2 minutes) isn't enough.   * **Code timeout**: It might take a while for users to open their e-mail account and find the code. Raise this timeout if the default (2 minutes) isn't enough.