aboutsummaryrefslogtreecommitdiff
path: root/www/functions/func_user.php
diff options
context:
space:
mode:
authorroot2014-04-15 20:03:48 +0200
committerroot2014-04-15 20:03:48 +0200
commitb4e9313612dd341e43e5dc998469ec346adea8c6 (patch)
tree49f4ab238cf03d09b58ee9ef883f2e41f3e418a1 /www/functions/func_user.php
parent34080a9121c4710610b2537175818aa1b9f4a6ce (diff)
downloadjungegemeinde-b4e9313612dd341e43e5dc998469ec346adea8c6.tar.gz
Added failure page and fixed brutforce protection.
Diffstat (limited to 'www/functions/func_user.php')
-rwxr-xr-xwww/functions/func_user.php6
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){