#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

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