aboutsummaryrefslogtreecommitdiff
path: root/boca-1.5.1/src/flog.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2012-10-20 12:24:23 +0000
committercassiopc <cassiopc@gmail.com>2012-10-20 12:24:23 +0000
commit9e75d473525446d0961a7567bcb8a1e672949df8 (patch)
treea054cab8f262a6e9230bc572ecae25513572c99b /boca-1.5.1/src/flog.php
parente457938928ba589b16f12a2e6d38922dd94b2a51 (diff)
downloadboca-9e75d473525446d0961a7567bcb8a1e672949df8.tar.gz
boca-9e75d473525446d0961a7567bcb8a1e672949df8.zip
fixed team login issue, included empty default options in submission tab, included extra-packages and links in ICPC Linux
Diffstat (limited to 'boca-1.5.1/src/flog.php')
-rw-r--r--boca-1.5.1/src/flog.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/boca-1.5.1/src/flog.php b/boca-1.5.1/src/flog.php
index 56fdfed..e52e167 100644
--- a/boca-1.5.1/src/flog.php
+++ b/boca-1.5.1/src/flog.php
@@ -123,7 +123,7 @@ function DBLogInContest($name,$pass,$contest,$msg=true) {
}
$a = DBGetRow("select * from usertable where username='$name' and contestnumber=".
$b["contestnumber"]." and " .
- "usersitenumber=".$b["contestlocalsite"], 0, null, "DBLogIn(get user)");
+ "usersitenumber=".$b["contestlocalsite"], 0, null, "DBLogIn(get user)");
if ($a == null) {
if($msg) {
LOGLevel("User $name tried to log in contest $contest but it does not exist.",2);
@@ -131,12 +131,13 @@ function DBLogInContest($name,$pass,$contest,$msg=true) {
}
return false;
}
+ $a = DBUserInfo($b["contestnumber"], $b["contestlocalsite"],$a['usernumber'],null,false);
$_SESSION['usertable'] = $a;
$p = myhash($a["userpassword"] . session_id());
$_SESSION['usertable']['userpassword'] = $p;
if ($a["userpassword"] != "" && $p != $pass) {
LOGLevel("User $name tried to log in contest $contest but password was incorrect.",2);
- if($msg) MSGError("User does not exist or incorrect password.");
+ if($msg) MSGError("Incorrect password.");
unset($_SESSION["usertable"]);
return false;
}