From daa554c2cdeefdae2c40854b3496208e964b296f Mon Sep 17 00:00:00 2001 From: Vishal Kumar Date: Tue, 13 Sep 2022 18:50:43 +0530 Subject: [PATCH] Fix nonce verification failure --- login-with-google.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/login-with-google.php b/login-with-google.php index 851d8496..059c1aba 100644 --- a/login-with-google.php +++ b/login-with-google.php @@ -112,6 +112,14 @@ function container(): Container { function plugin(): Plugin { static $plugin; + $reauth = filter_input( INPUT_GET, 'reauth', FILTER_SANITIZE_STRING ); + if ( null !== $reauth ) { + if ( ! empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) { + wp_safe_redirect( wp_login_url() ); + exit; + } + } + if ( null !== $plugin ) { return $plugin; }