]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Output a log message when issuing a request token
authorZach Copley <zach@status.net>
Tue, 12 Oct 2010 19:25:34 +0000 (12:25 -0700)
committerZach Copley <zach@status.net>
Tue, 12 Oct 2010 19:25:34 +0000 (12:25 -0700)
actions/apioauthrequesttoken.php

index 825460f93c72fbcc2acb82c253eaea4645cdea3f..478d2dbfc433c4e152b9f0f6626c5dabcd0b384e 100644 (file)
@@ -100,6 +100,16 @@ class ApiOauthRequestTokenAction extends ApiOauthAction
             // check signature and issue a new request token
             $token = $server->fetch_request_token($req);
 
+            common_log(
+                LOG_INFO,
+                sprintf(
+                    "API OAuth - Issued request token %s for consumer %s with oauth_callback %s",
+                    $token->key,
+                    $req->get_parameter('oauth_consumer_key'),
+                    "'" . $req->get_parameter('oauth_callback') ."'"
+                )
+            );
+
             // return token to the client
             $this->showRequestToken($token);