diff options
author | INOPIAE <inopiae@cacert.org> | 2013-01-12 20:55:02 +0100 |
---|---|---|
committer | INOPIAE <inopiae@cacert.org> | 2013-01-12 20:55:02 +0100 |
commit | f527860f5576a050f0b2c772b3b07fb51994f8e0 (patch) | |
tree | e02465b647d17e1c9c147236cd4df483d2f905c4 | |
parent | 3410bfceaa67ea094ca0238a394a77d4ebf00bad (diff) | |
download | cacert-devel-f527860f5576a050f0b2c772b3b07fb51994f8e0.tar.gz cacert-devel-f527860f5576a050f0b2c772b3b07fb51994f8e0.tar.xz cacert-devel-f527860f5576a050f0b2c772b3b07fb51994f8e0.zip |
bug 893: Fixed the cert login flag to disabled during account delete
-rw-r--r-- | includes/temp_functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/temp_functions.php b/includes/temp_functions.php index 764ef57..b3cd67f 100644 --- a/includes/temp_functions.php +++ b/includes/temp_functions.php @@ -15,7 +15,7 @@ function account_email_delete($mailid){ group by `emailcerts`.`id`"; $dres = mysql_query($query); while($drow = mysql_fetch_assoc($dres)){ - mysql_query("update `emailcerts` set `revoked`='1970-01-01 10:00:01', `disablelogin`=0 where `id`='".$drow['id']."'"); + mysql_query("update `emailcerts` set `revoked`='1970-01-01 10:00:01', `disablelogin`=1 where `id`='".$drow['id']."'"); } $query = "update `email` set `deleted`=NOW() where `id`='$mailid'"; mysql_query($query); @@ -150,7 +150,7 @@ function account_delete($id, $arbno, $adminid){ mysql_query("update `users` set `board`='0' where `id`='$id'"); //block account - mysql_query("update `users` set `locked`='1' where `id`='$id'"); + mysql_query("update `users` set `locked`='1', `deleted`=Now() where `id`='$id'"); } |