|
|
@ -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)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|