From c2962ece8b334b29110ecd8b83fb10f188aeb8fc Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 1 May 2018 12:48:01 +0000 Subject: [PATCH] system: cleanups related to #1929 --- .../mvc/app/library/OPNsense/Auth/TOTP.php | 2 +- src/www/system_advanced_admin.php | 53 ++++++++++--------- src/www/system_authservers.php | 37 +++++-------- 3 files changed, 43 insertions(+), 49 deletions(-) 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() { + + + + + + + + + - -