diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index e500f423c..63e488fdc 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -71,7 +71,7 @@ class AccountController extends Controller } } - // create a form to add and enable 2FA via TOTP + // form to add, remove, enable & disable 2FA via TOTP if ( $user->can('user/two-factor-authentication') ) { if (isset($_POST['enabled_2fa'])) { @@ -88,8 +88,6 @@ class AccountController extends Controller )), $user)); } -// $db = Icinga::app()->; -// Totp::on() $totpForm->handleRequest(); $this->view->totpForm = $totpForm; diff --git a/application/forms/Authentication/Challenge2FAForm.php b/application/forms/Authentication/Challenge2FAForm.php index fd5c59eae..d7fa0597f 100644 --- a/application/forms/Authentication/Challenge2FAForm.php +++ b/application/forms/Authentication/Challenge2FAForm.php @@ -34,7 +34,7 @@ class Challenge2FAForm extends LoginForm 'class' => 'autofocus content-centered', 'placeholder' => $this->translate('Please enter your 2FA code'), 'required' => true, - 'autocomplete' => 'off', + 'autocomplete' => 'off', ] ); diff --git a/library/Icinga/Model/Totp.php b/library/Icinga/Model/Totp.php index 041bad1d0..f8fb221fe 100644 --- a/library/Icinga/Model/Totp.php +++ b/library/Icinga/Model/Totp.php @@ -12,7 +12,7 @@ class Totp extends Model */ public function getTableName() { - return 'icingaweb_totp'; + return 'icingaweb_totp'; } /**