#458 - fix on variables not initialized

This commit is contained in:
Antonio Cordeddu
2022-08-12 16:30:06 +02:00
committed by Lorenzo Milesi
parent bf918b107e
commit 7fb900dfe1
4 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -26,6 +26,7 @@ class TwoFactorTextMessageValidator extends TwoFactorCodeValidator
protected $user;
protected $code;
protected $cycles;
protected $type;
/**
* TwoFactorCodeValidator constructor.

View File

@ -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

View File

@ -10,7 +10,7 @@
/** @var string $id */
/** @var string $uri */
/** @var string $mobilePhoneRegistration */
/** @var string $mobilePhone */
?>
<div id="phonenumbersection">