on api-key reset also log the username

This commit is contained in:
Felix Favre 2014-12-12 23:39:54 +01:00
parent bc6aa9a209
commit 5b3d0d302f
1 changed files with 19 additions and 19 deletions

View File

@ -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"); $result = sql_query("UPDATE `User` SET `api_key`='" . sql_escape($user['api_key']) . "' WHERE `UID`='" . sql_escape($user['UID']) . "' LIMIT 1");
if ($result === false) if ($result === false)
return false; return false;
engelsystem_log("API key resetted."); engelsystem_log(sprintf("API key resetted (%s).",User_Nick_render($user)));
} }
/** /**