on api-key reset also log the username

main
Felix Favre 10 years ago
parent bc6aa9a209
commit 5b3d0d302f

@ -196,7 +196,7 @@ function User_reset_api_key(&$user) {
$result = sql_query("UPDATE `User` SET `api_key`='" . sql_escape($user['api_key']) . "' WHERE `UID`='" . sql_escape($user['UID']) . "' LIMIT 1");
if ($result === false)
return false;
engelsystem_log("API key resetted.");
engelsystem_log(sprintf("API key resetted (%s).",User_Nick_render($user)));
}
/**

Loading…
Cancel
Save