X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=classes%2FConsumer.php;h=68e973bfb095bcfe55180c539026856b04c1f087;hb=99b1a6f57622099f322b0977c3632924c4df7507;hp=01bde457e5f7490116cda9adec7a69ddac99edd0;hpb=1a9a8ea73032b0ded09a8ea9a4c0511401507090;p=quix0rs-gnu-social.git diff --git a/classes/Consumer.php b/classes/Consumer.php index 01bde457e5..68e973bfb0 100644 --- a/classes/Consumer.php +++ b/classes/Consumer.php @@ -38,7 +38,7 @@ class Consumer extends Managed_DataObject static function generateNew() { $cons = new Consumer(); - $rand = common_good_rand(16); + $rand = common_random_hexstr(16); $cons->seed = $rand; $cons->consumer_key = md5(time() + $rand); @@ -54,14 +54,14 @@ class Consumer extends Managed_DataObject * XXX: Should this happen in an OAuthDataStore instead? * */ - function delete() + function delete($useWhere=false) { // XXX: Is there any reason NOT to do this kind of cleanup? $this->_deleteTokens(); $this->_deleteNonces(); - parent::delete(); + return parent::delete($useWhere); } function _deleteTokens()