]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/requesttoken.php
clean up username entered at login
[quix0rs-gnu-social.git] / actions / requesttoken.php
index 92b4c423422f53c66cd1f97acbe466e1cc1427e4..4a23215323fd767a28f412e106e575807470e637 100644 (file)
@@ -22,11 +22,16 @@ if (!defined('LACONICA')) { exit(1); }
 require_once(INSTALLDIR.'/lib/omb.php');
 
 class RequesttokenAction extends Action {
+       
+       function is_readonly() {
+               return false;
+       }
+       
        function handle($args) {
                parent::handle($args);
                try {
                        $req = OAuthRequest::from_request();
-                       $server = common_oauth_server();
+                       $server = omb_oauth_server();
                        $token = $server->fetch_request_token($req);
                        print $token;
                } catch (OAuthException $e) {