mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 18:06:01 +00:00
[Web] use correct user to fetch TFA authenticators
This commit is contained in:
@@ -1560,7 +1560,7 @@ function unset_tfa_key($_data) {
|
|||||||
}
|
}
|
||||||
function get_tfa($username = null, $id = null) {
|
function get_tfa($username = null, $id = null) {
|
||||||
global $pdo;
|
global $pdo;
|
||||||
if (isset($_SESSION['mailcow_cc_username'])) {
|
if (empty($username) && isset($_SESSION['mailcow_cc_username'])) {
|
||||||
$username = $_SESSION['mailcow_cc_username'];
|
$username = $_SESSION['mailcow_cc_username'];
|
||||||
}
|
}
|
||||||
elseif (empty($username)) {
|
elseif (empty($username)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user