Plugin Directory

Changeset 2861152


Ignore:
Timestamp:
02/07/2023 12:18:06 AM (3 years ago)
Author:
marius1hello
Message:

adding version 1.1.1 with fix for caching issues

Location:
hello-login/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • hello-login/trunk/CHANGELOG.md

    r2834786 r2861152  
    11# Hellō Login Changelog
     2
     3## 1.1.1
     4
     5* Fix: add cache control HTTP headers to auth request start endpoint response
    26
    37## 1.1.0
  • hello-login/trunk/hello-login.php

    r2834786 r2861152  
    1717 * Plugin URI:        https://github.com/hellocoop/wordpress
    1818 * Description:       Free and simple to setup plugin provides registration and login with the Hellō Wallet. Users choose from popular social login, email, or phone.
    19  * Version:           1.1.0
     19 * Version:           1.1.1
    2020 * Requires at least: 4.9
    2121 * Requires PHP:      7.2
     
    8585     * @var string
    8686     */
    87     const VERSION = '1.1.0';
     87    const VERSION = '1.1.1';
    8888
    8989    /**
     
    202202     */
    203203    public function hello_login_user_profile_self( $profileuser ) {
    204         $link_url = site_url( '?hello-login=start&redirect_to_path=' . rawurlencode( self::extract_path_and_query( get_edit_user_link( $profileuser->ID ) ) ) );
     204        $link_url = create_auth_request_start_url( self::extract_path_and_query( get_edit_user_link( $profileuser->ID ) ) );
    205205        $hello_user_id = get_user_meta( $profileuser->ID, 'hello-login-subject-identity', true );
    206206        $unlink_url = wp_nonce_url( site_url( '?hello-login=unlink' ), 'unlink' . $profileuser->ID );
  • hello-login/trunk/includes/functions.php

    r2834786 r2861152  
    1717add_action( 'login_enqueue_scripts', 'hello_login_enqueue_scripts_and_styles' );
    1818add_action( 'admin_enqueue_scripts', 'hello_login_enqueue_scripts_and_styles' );
     19
     20/**
     21 * Create the full URL of the auth request start endpoint. Redirecting to this URL will start the sign-in process.
     22 *
     23 * @param string $redirect_to_path the path where to redirect after sign in.
     24 * @return string
     25 */
     26function create_auth_request_start_url( string $redirect_to_path ) {
     27    return site_url( '?hello-login=start&redirect_to_path=' . rawurlencode( $redirect_to_path ) . '&_cc=' . microtime(true) );
     28}
  • hello-login/trunk/includes/hello-login-client-wrapper.php

    r2834786 r2861152  
    186186            );
    187187        }
     188
     189        nocache_headers();
    188190
    189191        wp_redirect ( $this->get_authentication_url( $atts ) );
  • hello-login/trunk/includes/hello-login-login-form.php

    r2834786 r2861152  
    178178        }
    179179
    180         $start_url = site_url( '?hello-login=start&redirect_to_path=' . rawurlencode( $redirect_to_path ) );
     180        $start_url = create_auth_request_start_url( $redirect_to_path );
    181181
    182182        ob_start();
  • hello-login/trunk/includes/hello-login-settings-page.php

    r2834786 r2861152  
    547547        $fields['create_if_does_not_exist'] = array(
    548548                'title'       => __( 'Allow anyone to register with Hellō', 'hello-login' ),
    549                 'description' => __( 'Create a new user if the do not have an account. Authentication will fail if the user does not have an account and this is disabled.', 'hello-login' ),
     549                'description' => __( 'Create a new user if they do not have an account. Authentication will fail if the user does not have an account and this is disabled.', 'hello-login' ),
    550550                'type'        => 'checkbox',
    551551                'disabled'    => defined( 'OIDC_CREATE_IF_DOES_NOT_EXIST' ),
     
    628628
    629629        $redirect_to_path = Hello_Login::extract_path_and_query( admin_url( '/options-general.php?page=hello-login-settings' ) );
    630         $start_url = site_url( '?hello-login=start&redirect_to_path=' . rawurlencode( $redirect_to_path ) );
     630        $start_url = create_auth_request_start_url( $redirect_to_path );
    631631
    632632        $debug = isset( $_GET['debug'] );
  • hello-login/trunk/languages/hello-login.pot

    r2834786 r2861152  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Hellō Login 1.1.0\n"
     5"Project-Id-Version: Hellō Login 1.1.1\n"
    66"Report-Msgid-Bugs-To: "
    77"https://github.com/hellocoop/wordpress/issues\n"
  • hello-login/trunk/readme.txt

    r2834786 r2861152  
    55Requires at least: 4.9
    66Tested up to: 6.1
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    8080
    8181== Changelog ==
     82
     83= 1.1.1 =
     84
     85* Fix: add cache control HTTP headers to auth request start endpoint response
    8286
    8387= 1.1.0 =
Note: See TracChangeset for help on using the changeset viewer.