2fa by email and by sms

This commit is contained in:
Antonio Cordeddu
2022-07-09 19:10:00 +02:00
parent 69e4bb620e
commit 91d110e1e7
47 changed files with 1253 additions and 48 deletions

View File

@ -81,11 +81,19 @@ class Module extends BaseModule
* @var bool whether to enable two factor authentication or not
*/
public $enableTwoFactorAuthentication = false;
/**
* @var array list of channel for two factor authentication availables
*/
public $twoFactorAuthenticationValidators = null;
/**
* @var int cycles of key generation are set on 30 sec. To avoid sync issues, increased validity up to 60 sec.
* @see http://2fa-library.readthedocs.io/en/latest/
*/
public $twoFactorAuthenticationCycles = 1;
/**
* @var int the number of seconds for which the code sent by email or by mobile phone is valid
* */
public $twoFactorEmailAuthenticationValidity = 300;
/**
* @var bool whether to allow auto login or not
*/