#458 - fix on variables not initialized
This commit is contained in:
committed by
Lorenzo Milesi
parent
bf918b107e
commit
7fb900dfe1
@ -32,7 +32,7 @@ class TwoFactorEmailValidator extends TwoFactorCodeValidator
|
||||
* TwoFactorCodeValidator constructor.
|
||||
*
|
||||
* @param User $user
|
||||
* @param $code
|
||||
* @param string $code
|
||||
* @param int $cycles
|
||||
*/
|
||||
public function __construct(User $user, $code, $cycles = 0)
|
||||
|
||||
@ -26,6 +26,7 @@ class TwoFactorTextMessageValidator extends TwoFactorCodeValidator
|
||||
protected $user;
|
||||
protected $code;
|
||||
protected $cycles;
|
||||
protected $type;
|
||||
|
||||
/**
|
||||
* TwoFactorCodeValidator constructor.
|
||||
|
||||
@ -106,6 +106,7 @@ $module = Yii::$app->getModule('user');
|
||||
<?php if (!$model->getUser()->auth_tf_enabled):
|
||||
$validators = $module->twoFactorAuthenticationValidators;
|
||||
$theFirstFound = false;
|
||||
$checked = '';
|
||||
foreach( $validators as $name => $validator ) {
|
||||
if($validator[ "enabled" ]){
|
||||
// I want to check in the radio field the first validator I get
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
|
||||
/** @var string $id */
|
||||
/** @var string $uri */
|
||||
/** @var string $mobilePhoneRegistration */
|
||||
/** @var string $mobilePhone */
|
||||
?>
|
||||
|
||||
<div id="phonenumbersection">
|
||||
|
||||
Reference in New Issue
Block a user