diff options
| author | root | 2014-04-15 20:03:48 +0200 |
|---|---|---|
| committer | root | 2014-04-15 20:03:48 +0200 |
| commit | b4e9313612dd341e43e5dc998469ec346adea8c6 (patch) | |
| tree | 49f4ab238cf03d09b58ee9ef883f2e41f3e418a1 /www/functions/func_user.php | |
| parent | 34080a9121c4710610b2537175818aa1b9f4a6ce (diff) | |
| download | jungegemeinde-b4e9313612dd341e43e5dc998469ec346adea8c6.tar.gz | |
Added failure page and fixed brutforce protection.
Diffstat (limited to 'www/functions/func_user.php')
| -rwxr-xr-x | www/functions/func_user.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/www/functions/func_user.php b/www/functions/func_user.php index d9e202d..8efd104 100755 --- a/www/functions/func_user.php +++ b/www/functions/func_user.php @@ -290,7 +290,11 @@ function user_id($db, $user){ } $owner = $owner_ar[0]; - return $owner; + if($owner != ""){ + return $owner; + } else { + return false; + } } function change_username($db, $oldname, $newname){ |
