diff options
author | Philip Häusler <msquare@notrademark.de> | 2013-09-10 14:45:41 +0200 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2013-09-10 14:45:41 +0200 |
commit | fb8241039b37e0318cbaf40831c28baa7b49d828 (patch) | |
tree | b3a5100985fbc68d719565edd7bee6ea07fe3c02 /includes/model/User_model.php | |
parent | 5b4c7fe15e7f20883fb71ef9a520b23a2693eaa3 (diff) |
#119 added links to json export
Diffstat (limited to 'includes/model/User_model.php')
-rw-r--r-- | includes/model/User_model.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/User_model.php b/includes/model/User_model.php index d79ede17..4e833aef 100644 --- a/includes/model/User_model.php +++ b/includes/model/User_model.php @@ -29,7 +29,7 @@ function User_by_api_key($api_key) { * Generates a new api key for given user. * @param User $user */ -function User_reset_api_key($user) { +function User_reset_api_key(&$user) { $user['api_key'] = md5($user['Nick'] . time() . rand()); sql_query("UPDATE `User` SET `api_key`='" . sql_escape($user['api_key']) . "' WHERE `UID`='" . sql_escape($user['UID']) . "' LIMIT 1"); engelsystem_log("API key resetted."); |