Add ability to disable a user.

This commit is contained in:
Mark Crane
2012-08-10 15:53:02 +00:00
parent 7a90a95857
commit 84d5b7b3df
23 changed files with 111 additions and 38 deletions
+1
View File
@@ -65,6 +65,7 @@ if (count($_POST)>0 && check_str($_POST["persistform"]) != "1") {
$sql = "SELECT * FROM v_users ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and username = '$username' ";
$sql .= "and user_enabled = 'true' ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();
if (count($prep_statement->fetchAll(PDO::FETCH_NAMED)) > 0) {