mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-24 18:37:52 +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 ( $user->can('user/two-factor-authentication') ) {
|
||||||
if (isset($_POST['enabled_2fa'])) {
|
if (isset($_POST['enabled_2fa'])) {
|
||||||
@ -88,8 +88,6 @@ class AccountController extends Controller
|
|||||||
)), $user));
|
)), $user));
|
||||||
}
|
}
|
||||||
|
|
||||||
// $db = Icinga::app()->;
|
|
||||||
// Totp::on()
|
|
||||||
$totpForm->handleRequest();
|
$totpForm->handleRequest();
|
||||||
|
|
||||||
$this->view->totpForm = $totpForm;
|
$this->view->totpForm = $totpForm;
|
||||||
|
@ -34,7 +34,7 @@ class Challenge2FAForm extends LoginForm
|
|||||||
'class' => 'autofocus content-centered',
|
'class' => 'autofocus content-centered',
|
||||||
'placeholder' => $this->translate('Please enter your 2FA code'),
|
'placeholder' => $this->translate('Please enter your 2FA code'),
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'autocomplete' => 'off',
|
'autocomplete' => 'off',
|
||||||
|
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -12,7 +12,7 @@ class Totp extends Model
|
|||||||
*/
|
*/
|
||||||
public function getTableName()
|
public function getTableName()
|
||||||
{
|
{
|
||||||
return 'icingaweb_totp';
|
return 'icingaweb_totp';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user