Plugin Directory

Changeset 2829541


Ignore:
Timestamp:
12/06/2022 05:42:50 PM (3 years ago)
Author:
marius1hello
Message:

adding version 1.0.9 with REST API caching fix

Location:
hello-login/trunk
Files:
6 edited

Legend:

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

    r2828854 r2829541  
    11# Hellō Login Changelog
     2
     3## 1.0.9
     4
     5* Fix: disable caching on REST API response
     6* Improvement: enable logging by default
     7* Improvement: content changes on plugin settings page
    28
    39## 1.0.8
  • hello-login/trunk/hello-login.php

    r2828854 r2829541  
    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 crypto wallet. Setup in 7 clicks, not 7 hours.
    19  * Version:           1.0.8
     19 * Version:           1.0.9
    2020 * Requires at least: 4.9
    2121 * Requires PHP:      7.2
     
    8585     * @var string
    8686     */
    87     const VERSION = '1.0.8';
     87    const VERSION = '1.0.9';
    8888
    8989    /**
     
    381381                'redirect_user_back' => defined( 'OIDC_REDIRECT_USER_BACK' ) ? intval( OIDC_REDIRECT_USER_BACK ) : 1,
    382382                'redirect_on_logout' => defined( 'OIDC_REDIRECT_ON_LOGOUT' ) ? intval( OIDC_REDIRECT_ON_LOGOUT ) : 1,
    383                 'enable_logging'  => 0,
     383                'enable_logging'  => 1,
    384384                'log_limit'       => 1000,
    385385            )
  • hello-login/trunk/includes/hello-login-client-wrapper.php

    r2828550 r2829541  
    188188     *
    189189     * @param WP_REST_Request $request The REST request object.
    190      * @return array|WP_Error A Hello service authentication URL.
     190     * @return WP_REST_Response|WP_Error A Hello service authentication URL.
    191191     */
    192192    public function rest_auth_url( WP_REST_Request $request ) {
     
    210210        }
    211211
    212         return array(
     212        $body = array(
    213213            'url' => $this->get_authentication_url( $atts ),
    214214        );
     215
     216        $response = new WP_REST_Response( $body );
     217        $response->set_headers( array( 'Cache-Control' => 'no-cache' ) );
     218
     219        return $response;
    215220    }
    216221
  • hello-login/trunk/includes/hello-login-settings-page.php

    r2828854 r2829541  
    489489
    490490            <?php if ( empty( $this->settings->client_id ) ) { ?>
    491             <p>The Hellō Login plug-in uses the Hellō Quickstart to get you up and running in seconds.</p>
     491            <p><h2>To use Hellō, you must configure your site. Hellō Quickstart will get you up and running in seconds. You will create a Hellō Wallet if you don't have one already</h2></p>
    492492
    493493            <form method="get" action="https://quickstart.hello.coop/">
     
    504504
    505505            <?php if ( empty( get_user_meta( get_current_user_id(), 'hello-login-subject-identity', true ) ) ) { ?>
    506                 <p id="link-hello-wallet">You are logged in with a username and a password. Link your Hellō Wallet to use Hellō in the future.</p>
     506                <p id="link-hello-wallet"><h2>You are logged in with a username and a password. Link your Hellō Wallet to use Hellō in the future.</h2></p>
    507507                <button class="hello-btn" data-label="ō&nbsp;&nbsp;&nbsp;Link Hellō" onclick="navigateToHelloAuthRequestUrl('<?php print esc_js( $api_url ); ?>', '')"></button>
    508508            <?php } ?>
     
    517517                ?>
    518518            </form>
    519 
    520             <?php } ?>
    521 
    522             <?php if ( isset( $_GET['debug'] ) ) { ?>
    523                 <h4>Debug</h4>
    524                 <p>Hellō user id: <code><?php print esc_html( get_user_meta( get_current_user_id(), 'hello-login-subject-identity', true ) ) ?></code></p>
    525                 <pre>
    526                 <?php print esc_html( var_dump( $this->settings->get_values() ) ); ?>
    527                 </pre>
    528             }
    529             <?php } ?>
    530519
    531520            <h4><?php esc_html_e( 'Notes', 'hello-login' ); ?></h4>
     
    544533            </p>
    545534
     535            <?php } ?>
     536
     537            <?php if ( isset( $_GET['debug'] ) ) { ?>
     538                <h4>Debug</h4>
     539                <p>Hellō user id: <code><?php print esc_html( get_user_meta( get_current_user_id(), 'hello-login-subject-identity', true ) ) ?></code></p>
     540                <pre>
     541                <?php print esc_html( var_dump( $this->settings->get_values() ) ); ?>
     542                </pre>
     543            }
     544            <?php } ?>
     545
    546546            <?php if ( $this->settings->enable_logging ) { ?>
    547547                <h2><?php esc_html_e( 'Logs', 'hello-login' ); ?></h2>
  • hello-login/trunk/languages/hello-login.pot

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

    r2828854 r2829541  
    55Requires at least: 4.9
    66Tested up to: 6.1
    7 Stable tag: 1.0.8
     7Stable tag: 1.0.9
    88Requires PHP: 7.2
    99License: GPLv2 or later
     
    8181== Changelog ==
    8282
     83= 1.0.9 =
     84
     85* Fix: disable caching on REST API response
     86* Improvement: enable logging by default
     87* Improvement: content changes on plugin settings page
     88
    8389= 1.0.8 =
    8490
Note: See TracChangeset for help on using the changeset viewer.