|
|
|
@ -385,7 +385,7 @@ class OpenID_Connect_Generic_Client_Wrapper {
|
|
|
|
|
$this->logger->log( "Successful login for: {$user->user_login} ({$user->ID})", 'login-success' );
|
|
|
|
|
|
|
|
|
|
// redirect back to the origin page if enabled
|
|
|
|
|
$redirect_url = isset( $_COOKIE[ $this->cookie_redirect_key ] ) ? esc_url( $_COOKIE[ $this->cookie_redirect_key ] ) : false;
|
|
|
|
|
$redirect_url = isset( $_COOKIE[ $this->cookie_redirect_key ] ) ? esc_url_raw( $_COOKIE[ $this->cookie_redirect_key ] ) : false;
|
|
|
|
|
|
|
|
|
|
if( $this->settings->redirect_user_back && !empty( $redirect_url ) ) {
|
|
|
|
|
do_action( 'openid-connect-generic-redirect-user-back', $redirect_url, $user );
|
|
|
|
|