Changeset 2861152
- Timestamp:
- 02/07/2023 12:18:06 AM (3 years ago)
- Location:
- hello-login/trunk
- Files:
-
- 8 edited
-
CHANGELOG.md (modified) (1 diff)
-
hello-login.php (modified) (3 diffs)
-
includes/functions.php (modified) (1 diff)
-
includes/hello-login-client-wrapper.php (modified) (1 diff)
-
includes/hello-login-login-form.php (modified) (1 diff)
-
includes/hello-login-settings-page.php (modified) (2 diffs)
-
languages/hello-login.pot (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hello-login/trunk/CHANGELOG.md
r2834786 r2861152 1 1 # Hellō Login Changelog 2 3 ## 1.1.1 4 5 * Fix: add cache control HTTP headers to auth request start endpoint response 2 6 3 7 ## 1.1.0 -
hello-login/trunk/hello-login.php
r2834786 r2861152 17 17 * Plugin URI: https://github.com/hellocoop/wordpress 18 18 * 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. 019 * Version: 1.1.1 20 20 * Requires at least: 4.9 21 21 * Requires PHP: 7.2 … … 85 85 * @var string 86 86 */ 87 const VERSION = '1.1. 0';87 const VERSION = '1.1.1'; 88 88 89 89 /** … … 202 202 */ 203 203 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 ) ) ); 205 205 $hello_user_id = get_user_meta( $profileuser->ID, 'hello-login-subject-identity', true ); 206 206 $unlink_url = wp_nonce_url( site_url( '?hello-login=unlink' ), 'unlink' . $profileuser->ID ); -
hello-login/trunk/includes/functions.php
r2834786 r2861152 17 17 add_action( 'login_enqueue_scripts', 'hello_login_enqueue_scripts_and_styles' ); 18 18 add_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 */ 26 function 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 186 186 ); 187 187 } 188 189 nocache_headers(); 188 190 189 191 wp_redirect ( $this->get_authentication_url( $atts ) ); -
hello-login/trunk/includes/hello-login-login-form.php
r2834786 r2861152 178 178 } 179 179 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 ); 181 181 182 182 ob_start(); -
hello-login/trunk/includes/hello-login-settings-page.php
r2834786 r2861152 547 547 $fields['create_if_does_not_exist'] = array( 548 548 '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' ), 550 550 'type' => 'checkbox', 551 551 'disabled' => defined( 'OIDC_CREATE_IF_DOES_NOT_EXIST' ), … … 628 628 629 629 $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 ); 631 631 632 632 $debug = isset( $_GET['debug'] ); -
hello-login/trunk/languages/hello-login.pot
r2834786 r2861152 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Hellō Login 1.1. 0\n"5 "Project-Id-Version: Hellō Login 1.1.1\n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://github.com/hellocoop/wordpress/issues\n" -
hello-login/trunk/readme.txt
r2834786 r2861152 5 5 Requires at least: 4.9 6 6 Tested up to: 6.1 7 Stable tag: 1.1. 07 Stable tag: 1.1.1 8 8 Requires PHP: 7.2 9 9 License: GPLv2 or later … … 80 80 81 81 == Changelog == 82 83 = 1.1.1 = 84 85 * Fix: add cache control HTTP headers to auth request start endpoint response 82 86 83 87 = 1.1.0 =
Note: See TracChangeset
for help on using the changeset viewer.