on api-key reset also log the username
This commit is contained in:
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");
|
$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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue