[Web] multiple tfa - domainadmin support

This commit is contained in:
FreddleSpl0it 2022-02-22 09:38:06 +01:00
parent 5fcccbc97d
commit 21fadf6df2
No known key found for this signature in database
GPG Key ID: F1B3BE8A3BBA3451
2 changed files with 2 additions and 2 deletions

View File

@ -876,7 +876,7 @@ function check_login($user, $pass, $app_passwd_data = false) {
if (isset($authenticators['additional']) && is_array($authenticators['additional']) && count($authenticators['additional']) > 0) {
$_SESSION['pending_mailcow_cc_username'] = $user;
$_SESSION['pending_mailcow_cc_role'] = "domainadmin";
$_SESSION['pending_tfa_method'] = $authenticators['additional'];
$_SESSION['pending_tfa_methods'] = $authenticators['additional'];
unset($_SESSION['ldelay']);
$_SESSION['return'][] = array(
'type' => 'info',

View File

@ -28,7 +28,7 @@
<div class="col-sm-9 col-xs-7">
<select id="selectTFA" class="selectpicker" title="{{ lang.tfa.select }}">
<option value="yubi_otp">{{ lang.tfa.yubi_otp }}</option>
<option value="u2f">{{ lang.tfa.u2f }}</option>
<option value="webauthn">{{ lang.tfa.webauthn }}</option>
<option value="totp">{{ lang.tfa.totp }}</option>
<option value="none">{{ lang.tfa.none }}</option>
</select>