Commit 46918cc1 authored by Leigh Stoller's avatar Leigh Stoller

Update usr_modified slot of users table when a user changes his info.

Useful for auditing and perhaps for other things.
parent ad7f868b
......@@ -128,6 +128,9 @@ TBMAIL("$targuid_name <$targuid_email>",
DBQueryFatal("delete from user_pubkeys ".
"where uid='$target_uid' and comment='$key'");
DBQueryFatal("update users set usr_modified=now() ".
"where uid='$target_uid'");
#
# mkacct updates the user pubkeys.
#
......
......@@ -297,6 +297,9 @@ if (isset($usr_key)) {
$chunky .= "\n";
}
DBQueryFatal("update users set usr_modified=now() ".
"where uid='$target_uid'");
#
# Audit
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment