diff --git a/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php b/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php index 6c27902af..eaac0b6a0 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php +++ b/src/opnsense/mvc/app/library/OPNsense/Auth/TOTP.php @@ -188,7 +188,7 @@ trait TOTP if (!empty($config['graceperiod'])) { $this->graceperiod = $config['graceperiod']; } - if (array_key_exists('passwordFirst', $config) && !empty($config['passwordFirst'])) { + if (!empty($config['passwordFirst'])) { $this->passwordFirst = true; } } diff --git a/src/www/system_advanced_admin.php b/src/www/system_advanced_admin.php index 82101bf13..127a7fe13 100644 --- a/src/www/system_advanced_admin.php +++ b/src/www/system_advanced_admin.php @@ -540,6 +540,15 @@ $(document).ready(function() { + + + + + + + @@ -771,26 +780,6 @@ $(document).ready(function() { - - - - /> - - - - - - - - - -
@@ -805,7 +794,7 @@ $(document).ready(function() { + + + + + + + + + - -