aboutsummaryrefslogtreecommitdiff
path: root/src/fcontest.php
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-11-05 14:18:14 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-11-05 14:18:14 +0000
commit66aad0beeaae24f999e2544103ffe2814fb56cd3 (patch)
treeb4f0c96efb81e2f3383e5628a1bc2125ee6b7303 /src/fcontest.php
parent27e9051904e25a610d7997e1f9d525d58f9ec72f (diff)
downloadboca-66aad0beeaae24f999e2544103ffe2814fb56cd3.tar.gz
boca-66aad0beeaae24f999e2544103ffe2814fb56cd3.zip
bf
Diffstat (limited to 'src/fcontest.php')
-rw-r--r--src/fcontest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcontest.php b/src/fcontest.php
index f441c33..5c14277 100644
--- a/src/fcontest.php
+++ b/src/fcontest.php
@@ -1309,7 +1309,7 @@ function DBNewUser($param, $c=null) {
MSGError("DBNewUser param error: site $site does not exist");
return false;
}
- if($pass != myhash("") && $type != "admin" && $changepass != "t") $pass='!'.$pass;
+ if($pass != myhash("") && $type != "admin" && $changepass != "t" && substr($pass,0,1) != "!") $pass='!'.$pass;
$r = DBExec($c, "select * from usertable where username='$username' and usernumber!=$user and ".
"usersitenumber=$site and contestnumber=$contest", "DBNewUser(get user)");
$n = DBnlines ($r);