mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-23 18:07:42 +02:00
Cleanup
This commit is contained in:
parent
535110c9e6
commit
ce8e6f966d
@ -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;
|
||||
|
@ -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',
|
||||
|
||||
]
|
||||
);
|
||||
|
@ -12,7 +12,7 @@ class Totp extends Model
|
||||
*/
|
||||
public function getTableName()
|
||||
{
|
||||
return 'icingaweb_totp';
|
||||
return 'icingaweb_totp';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user