NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Web] Fix SSO for SOGo when authen with FIDO2, thanks to Drago!

cf50ff01
andryyy <[email protected]> 6 years ago
data/web/json_api.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Diff

diff --git a/data/web/json_api.php b/data/web/json_api.php
index c7bea2ba..46d6e35c 100644
--- a/data/web/json_api.php
+++ b/data/web/json_api.php
@@ -136,7 +136,7 @@ if (isset($_GET['query'])) {
         ));
         exit();
       }
-      
+
       switch ($category) {
         // fido2-registration via POST
         case "fido2-registration":
@@ -306,7 +306,9 @@ if (isset($_GET['query'])) {
             $_SESSION["mailcow_cc_role"] = "domainadmin";
           }
           $_SESSION["mailcow_cc_username"] = $process_fido2['username'];
+          $_SESSION['mailcow_cc_last_login'] = last_login($process_fido2['username']);
           $_SESSION["fido2_cid"] = $process_fido2['cid'];
+          unset($_SESSION["challenge"]);
           $_SESSION['return'][] =  array(
             'type' => 'success',
             'log' => array("fido2_login"),