PR #458 - fix and improvement required by @mp1509
This commit is contained in:
@ -15,31 +15,35 @@ a bigger period so to avoid out of sync issues.
|
||||
#### twoFactorAuthenticationValidators (type: `array`)
|
||||
|
||||
An array of arrays of channels availables for two factor authentication. The keys in the arrays have the following meaning:
|
||||
class: it will be the validator class with namespace
|
||||
name: the name that will be displayed in the section to the user
|
||||
configurationUrl: the url to the action that will dispaly the configuration form for the validator
|
||||
codeDurationTime: time duration of the code in session in seconds (not applicable for Google authenticator)
|
||||
smsSender: the reference to SmsSenderInterface for managing SMS send.
|
||||
class: it will be the validator class with namespace;
|
||||
name: the name that will be displayed in the section to the user;
|
||||
configurationUrl: the url to the action that will dispaly the configuration form for the validator;
|
||||
codeDurationTime: time duration of the code in session in seconds (not applicable for Google authenticator);
|
||||
smsSender: the reference to SmsSenderInterface for managing SMS send;
|
||||
enabled: true if you want to enable the channel, false otherwise.
|
||||
|
||||
The following is the deafult configuration:
|
||||
The following is the default configuration:
|
||||
|
||||
'google-authenticator'=>[
|
||||
'class'=>\Da\User\Validator\TwoFactorCodeValidator::class,
|
||||
'description'=>Yii::t('usuario', 'Google Authenticator'),
|
||||
'configurationUrl'=>'user/settings/two-factor'
|
||||
'configurationUrl'=>'user/settings/two-factor',
|
||||
'enabled'=>true
|
||||
],
|
||||
'email'=>[
|
||||
'class'=>\Da\User\Validator\TwoFactorEmailValidator::class,
|
||||
'description'=>Yii::t('usuario', 'Email'),
|
||||
'configurationUrl'=>'user/settings/two-factor-email',
|
||||
'codeDurationTime'=>300
|
||||
'codeDurationTime'=>300,
|
||||
'enabled'=>true
|
||||
],
|
||||
'sms'=>[
|
||||
'class'=>\Da\User\Validator\TwoFactorTextMessageValidator::class,
|
||||
'description'=>Yii::t('usuario', 'Text message'),
|
||||
'configurationUrl'=>'user/settings/two-factor-sms',
|
||||
'codeDurationTime'=>300,
|
||||
'smsSender'=>'smsSender'
|
||||
'smsSender'=>'smsSender',
|
||||
'enabled'=>true
|
||||
]
|
||||
|
||||
For instructions about implementation of SMS sending see at the following link: https://www.yiiframework.com/extension/yetopen/yii2-sms-aruba
|
||||
|
||||
Reference in New Issue
Block a user