From c82dc4785c6c42067e7b2351256f436af8d1e494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Laiola=20Guimar=C3=A3es?= Date: Mon, 27 Mar 2023 16:07:54 -0300 Subject: Fix user multi-login problem when running BOCA with a reverse proxy (#19) * Fix user multi-login issue Addresses the user multi-logins issue reported at #18. * Update flog.php --- src/flog.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flog.php b/src/flog.php index b8f4122..ca168f0 100644 --- a/src/flog.php +++ b/src/flog.php @@ -177,7 +177,7 @@ function DBLogInContest($name,$pass,$contest,$msg=true) { unset($_SESSION["usertable"]); return false; } - //if($prevuser != $ccode && $a["usertype"] == "team") { + //if($prevuser != $ccode && $a["usertype"] == "team" && $a["usermultilogin"] != "t") { // LOGLevel("User $name tried to log in contest $contest but computer is invalid ($ccode).",2); // if($msg) MSGError("Invalid computer (3)."); // unset($_SESSION["usertable"]); -- cgit v1.2.3