mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-08-02 06:52:14 +00:00
[Web] use correct user to fetch TFA authenticators
This commit is contained in:
parent
70126e1f0c
commit
f33d82ffc1
1 changed files with 1 additions and 1 deletions
|
|
@ -1560,7 +1560,7 @@ function unset_tfa_key($_data) {
|
|||
}
|
||||
function get_tfa($username = null, $id = null) {
|
||||
global $pdo;
|
||||
if (isset($_SESSION['mailcow_cc_username'])) {
|
||||
if (empty($username) && isset($_SESSION['mailcow_cc_username'])) {
|
||||
$username = $_SESSION['mailcow_cc_username'];
|
||||
}
|
||||
elseif (empty($username)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue