diff options
| author | Rodrigo Laiola GuimarĂ£es <rlaiola@users.noreply.github.com> | 2023-03-27 19:07:54 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-27 19:07:54 +0000 |
| commit | c82dc4785c6c42067e7b2351256f436af8d1e494 (patch) | |
| tree | 9570c75c5be6a78e5bfd64fc2403b99689286285 | |
| parent | 7d38316441cd1f2c61b9c553456b7621c5b0d3a7 (diff) | |
| download | boca-c82dc4785c6c42067e7b2351256f436af8d1e494.tar.gz boca-c82dc4785c6c42067e7b2351256f436af8d1e494.zip | |
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
| -rw-r--r-- | src/flog.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"]); |