1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-22 14:21:31 +00:00

Merge pull request #6406 from mailcow/fix/6392

[Web] Fix SOGo access after Passwordless auth
This commit is contained in:
FreddleSpl0it
2025-03-27 07:42:07 +01:00
committed by GitHub
4 changed files with 27 additions and 10 deletions

View File

@@ -92,11 +92,15 @@ if (isset($_POST["verify_tfa_login"])) {
unset($_SESSION['pending_tfa_methods']);
}
if (isset($_POST["verify_fido2_login"])) {
fido2(array(
$res = fido2(array(
"action" => "verify",
"token" => $_POST["token"],
"user" => "user"
));
if (is_array($res) && $res['role'] == "user" && !empty($res['username'])){
set_user_loggedin_session($res['username']);
$_SESSION["fido2_cid"] = $res['cid'];
}
exit;
}