Skip to content

Commit

Permalink
Merge pull request #79 from aaronpk/master
Browse files Browse the repository at this point in the history
remove unnecessary param
  • Loading branch information
dshanske committed Jul 10, 2018
2 parents 5272d61 + 511b892 commit 8177ee4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/class-indieauth-token-endpoint.php
Expand Up @@ -124,13 +124,12 @@ public function request( $params ) {
if ( ! empty( $diff ) ) {
return new WP_OAuth_Response( 'invalid_request', __( 'The request is missing one or more required parameters', 'indieauth' ), 400 );
}
$endpoint = find_rels( $params['me'], 'authorization_endpoint' );
$response = $this->verify_local_authorization_code(
array(
'code' => $params['code'],
'redirect_uri' => $params['redirect_uri'],
'client_id' => $params['client_id'],
), $endpoint
)
);
$error = get_oauth_error( $response );
if ( $error ) {
Expand Down

0 comments on commit 8177ee4

Please sign in to comment.