[Web] tfa extra debugging

This commit is contained in:
FreddleSpl0it 2022-03-18 08:45:02 +01:00
parent b185f83fc3
commit 70921b8d15
No known key found for this signature in database
GPG Key ID: F1B3BE8A3BBA3451

View File

@ -1829,7 +1829,7 @@ function verify_tfa_login($username, $_data) {
$stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :username"); $stmt = $pdo->prepare("SELECT `username` FROM `mailbox` WHERE `username` = :username");
$stmt->execute(array(':username' => $process_webauthn['username'])); $stmt->execute(array(':username' => $process_webauthn['username']));
$row = $stmt->fetch(PDO::FETCH_ASSOC); $row = $stmt->fetch(PDO::FETCH_ASSOC);
if (!empty($row['username']) { if (!empty($row['username'])) {
// is user // is user
$_SESSION["mailcow_cc_role"] = "user"; $_SESSION["mailcow_cc_role"] = "user";
} else { } else {