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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user