[Web] Fix SSO for SOGo when authen with FIDO2, thanks to Drago!
parent
3535ed6efe
commit
cf50ff01da
|
@ -136,7 +136,7 @@ if (isset($_GET['query'])) {
|
||||||
));
|
));
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($category) {
|
switch ($category) {
|
||||||
// fido2-registration via POST
|
// fido2-registration via POST
|
||||||
case "fido2-registration":
|
case "fido2-registration":
|
||||||
|
@ -306,7 +306,9 @@ if (isset($_GET['query'])) {
|
||||||
$_SESSION["mailcow_cc_role"] = "domainadmin";
|
$_SESSION["mailcow_cc_role"] = "domainadmin";
|
||||||
}
|
}
|
||||||
$_SESSION["mailcow_cc_username"] = $process_fido2['username'];
|
$_SESSION["mailcow_cc_username"] = $process_fido2['username'];
|
||||||
|
$_SESSION['mailcow_cc_last_login'] = last_login($process_fido2['username']);
|
||||||
$_SESSION["fido2_cid"] = $process_fido2['cid'];
|
$_SESSION["fido2_cid"] = $process_fido2['cid'];
|
||||||
|
unset($_SESSION["challenge"]);
|
||||||
$_SESSION['return'][] = array(
|
$_SESSION['return'][] = array(
|
||||||
'type' => 'success',
|
'type' => 'success',
|
||||||
'log' => array("fido2_login"),
|
'log' => array("fido2_login"),
|
||||||
|
|
Loading…
Reference in New Issue