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