Skip to content

Commit

Permalink
Update: Changed the Redirect URL for the one tap login.
Browse files Browse the repository at this point in the history
  • Loading branch information
SH4LIN committed May 28, 2024
1 parent 6d9ad68 commit 066e623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Modules/OneTapLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function validate_token(): void {
*/
do_action( 'rtcamp.id_token_verified' );

$redirect_to = apply_filters( 'rtcamp.google_default_redirect', admin_url() );
$redirect_to = apply_filters( 'rtcamp.google_default_redirect', home_url() );
$state = Helper::filter_input( INPUT_POST, 'state', FILTER_SANITIZE_STRING );
$decoded_state = $state ? (array) ( json_decode( base64_decode( $state ) ) ) : null;

Expand Down
2 changes: 1 addition & 1 deletion tests/php/Unit/Modules/LoginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public function testStateRedirectWithoutRedirectTo() {
)->andReturn( null );

$this->wpMockFunction(
'admin_url',
'home_url',
[],
1,
'https://example.com/login'
Expand Down

0 comments on commit 066e623

Please sign in to comment.