Skip to content

Commit

Permalink
Remove unneeded code accidentally left in during refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreyparker committed Jun 4, 2024
1 parent c416ec2 commit a666a16
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion class-duouniversal-wordpressplugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ function duo_authenticate_user( $user = '', $username = '', $password = '' ) {
}
try {
// Update redirect URL to be one associated with initial authentication.
$associated_uri = $this->get_redirect_url( $associated_user->ID );
$this->duo_client->redirect_url = $this->get_redirect_url( $associated_user->ID );
$decoded_token = $this->duo_client->exchangeAuthorizationCodeFor2FAResult( $code, $associated_user->user_login );
} catch ( \Duo\DuoUniversal\DuoException $e ) {
Expand Down
1 change: 0 additions & 1 deletion tests/duoUniversalAuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ function testClearAuthRemovesMetadata(): void
$this->setUpMocks();
$user = $this->createMockUser();
WP_Mock::userFunction('wp_get_current_user', [ 'return' => $user ]);
WP_Mock::userFunction('delete_user_meta', ['return' => function() { throw (new Exception()); } ]);
$authentication = new Duo\DuoUniversalWordpress\DuoUniversal_WordPressPlugin($this->duo_utils, $this->duo_client);

// Make an auth to populate the database
Expand Down

0 comments on commit a666a16

Please sign in to comment.