From 6b5d6a9782959a3423d53883dc2cc962069cf5b7 Mon Sep 17 00:00:00 2001 From: Robert Staddon Date: Wed, 18 May 2016 11:26:28 -0500 Subject: [PATCH] Add "Redirect Back to Origin Page" setting This setting would override the default action of redirecting the user to the home page after a successful login and instead redirect the user back to the page on which they clicked the OpenID Connect login button. This would cause the login process to proceed in a traditional WordPress fashion. --- includes/openid-connect-generic-settings-page.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/openid-connect-generic-settings-page.php b/includes/openid-connect-generic-settings-page.php index a05588e..5859071 100644 --- a/includes/openid-connect-generic-settings-page.php +++ b/includes/openid-connect-generic-settings-page.php @@ -117,6 +117,12 @@ class OpenID_Connect_Generic_Settings_Page { 'type' => 'checkbox', 'section' => 'user_settings', ), + 'redirect_user_back' => array( + 'title' => __( 'Redirect Back to Origin Page' ), + 'description' => __( 'After a successful OpenID Connect authentication, this will override the default action of redirecting the user to the home page and instead redirect the user back to the page on which they clicked the OpenID Connect login button. This will cause the login process to proceed in a traditional WordPress fashion. For example, users logging in through the default wp-login.php page would end up on the WordPress Dashboard and users logging in through the WooCommerce "My Account" page would end up on their account page.' ), + 'type' => 'checkbox', + 'section' => 'user_settings', + ), 'enable_logging' => array( 'title' => __( 'Enable Logging' ), 'description' => __( 'Very simple log messages for debugging purposes.' ),