Skip to content

Commit 9b107df

Browse files
committed
Don't allow re-authorization of authorized tokens
1 parent 76080f5 commit 9b107df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/class-wp-json-authentication-oauth1-authorize.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public function render_page() {
7070
return $this->token;
7171
}
7272

73+
if ( $this->token['authorized'] === true ) {
74+
return $this->handle_callback_redirect( $this->token['verifier'] );
75+
}
76+
7377
// Fetch consumer
7478
$this->consumer = $consumer = get_post( $this->token['consumer'] );
7579

0 commit comments

Comments
 (0)