Try to prevent double submit
This commit is contained in:
1 parent
3798d6ce05
commit
bdbead69bf
5 files changed
+18
-2
No files matched your search
+1
-1
@@ -39,7 +39,7 @@ $query = $_GET['q'];
|
||||
$query = $conn->quoteSmart($query);
|
||||
|
||||
// Search query
|
||||
$sql = "SELECT id FROM din_user WHERE username=$query";
|
||||
$sql = "SELECT id FROM din_user WHERE username=$query OR ldap_username=$query";
|
||||
$res = $conn->query($sql);
|
||||
|
||||
if( DB::isError($res) ) {
|
||||
|
||||
Reference in new issue
Block a user