Skip to content

Commit

Permalink
comment out useless but breaking code
Browse files Browse the repository at this point in the history
  • Loading branch information
fayland committed Nov 24, 2011
1 parent 625046d commit bf743b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Plack/Middleware/OAuth/Handler/AccessTokenV1.pm
Expand Up @@ -38,10 +38,10 @@ sub run {
# oauth_token=
# oauth_verifier=
# my $response = Net::OAuth->response( 'user auth' )->from_hash( request->params );
my $response = Net::OAuth->response( 'user auth' )->from_hash( {
oauth_token => $self->param('oauth_token'),
oauth_verifier => $self->param('oauth_verifier'),
});
# my $response = Net::OAuth->response( 'user auth' )->from_hash( {
# oauth_token => $self->param('oauth_token'),
# oauth_verifier => $self->param('oauth_verifier'),
# });

my $request = Net::OAuth->request( 'access token' )->new( $self->build_args );
$request->sign;
Expand All @@ -55,7 +55,7 @@ sub run {
}


$response = Net::OAuth->response( 'access token' )->from_post_body( $ua_response->content );
my $response = Net::OAuth->response( 'access token' )->from_post_body( $ua_response->content );

my $token = Plack::Middleware::OAuth::AccessToken->new(
version => $config->{version},
Expand Down

0 comments on commit bf743b2

Please sign in to comment.