Plugin Directory

Changeset 2994557


Ignore:
Timestamp:
11/11/2023 07:29:55 PM (2 years ago)
Author:
nimeshatxecurify
Message:

WP OAuth Server 6.0.3

  • Phone number optional in support form.
  • Fixed some JS errors.
  • Compatibility with WP 6.4.
Location:
miniorange-oauth-20-server
Files:
266 added
6 edited

Legend:

Unmodified
Added
Removed
  • miniorange-oauth-20-server/trunk/admin/js/miniorange-oauth-20-server-admin.js

    r2949326 r2994557  
    3434
    3535        // Add a click event on various child elements to close the parent modal
    36         (document.querySelectorAll('.modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button') || []).forEach(
     36        (document.querySelectorAll('.modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button-cancel') || []).forEach(
    3737            ($close) => {
    3838                const $target = $close.closest('.modal');
     
    5858
    5959        // js for countries flag
    60         jQuery("#contact_us_phone").intlTelInput();
     60        jQuery("#contact_us_phone").intlTelInput({nationalMode:!1});
    6161
    6262        // Show dynamic pricing
     
    9797        // Change eye icon tooltip text
    9898        var eyeTooltip = document.getElementById("eye-tooltip");
    99         eyeTooltip.addEventListener(
    100             'click',
    101             function () {
    102                 eyeTooltip.getAttribute('data-tooltip') == 'Show Client Secret' ? eyeTooltip.setAttribute('data-tooltip', 'Hide Client Secret') : eyeTooltip.setAttribute('data-tooltip', 'Show Client Secret');
    103             }
    104         );
     99        if(eyeTooltip){
     100            eyeTooltip.addEventListener(
     101                'click',
     102                function () {
     103                    eyeTooltip.getAttribute('data-tooltip') == 'Show Client Secret' ? eyeTooltip.setAttribute('data-tooltip', 'Hide Client Secret') : eyeTooltip.setAttribute('data-tooltip', 'Show Client Secret');
     104                }
     105            );
     106        }
    105107
    106108        // Change copy icon tooltip text
     
    124126        let clientSecretTable = document.getElementById("client-secret");
    125127        let eyeIcon = document.getElementById("eye_icon");
    126         eyeIcon.addEventListener(
    127             'click',
    128             function () {
    129                 if (clientSecretTable.type == "password") {
    130                     clientSecretTable.type = "text";
    131                     eyeIcon.className = "fa-solid fa-eye-slash";
    132                 } else {
    133                     clientSecretTable.type = "password";
    134                     eyeIcon.className = "fa-solid fa-eye";
     128        if(eyeIcon){
     129            eyeIcon.addEventListener(
     130                'click',
     131                function () {
     132                    if (clientSecretTable.type == "password") {
     133                        clientSecretTable.type = "text";
     134                        eyeIcon.className = "fa-solid fa-eye-slash";
     135                    } else {
     136                        clientSecretTable.type = "password";
     137                        eyeIcon.className = "fa-solid fa-eye";
     138                    }
    135139                }
    136             }
    137         );
     140            );
     141        }
    138142    }
    139143);
  • miniorange-oauth-20-server/trunk/admin/views/miniorange-oauth-20-server-nav-header.php

    r2907921 r2994557  
    106106                    <footer class="modal-card-foot is-justify-content-center">
    107107                        <button type="submit" class="button is-blue">Submit</button>
    108                         <button class="button is-blue is-outlined">Cancel</button>
     108                        <button type="button" class="button button-cancel is-blue is-outlined">Cancel</button>
    109109                    </footer>
    110110                </form>
  • miniorange-oauth-20-server/trunk/admin/views/miniorange-oauth-20-server-settings-contact-us.php

    r2927943 r2994557  
    4545            <label class="label">Phone Number</label>
    4646            <div class="control has-icons-left">
    47                 <input class="input" type="tel" id="contact_us_phone" name="mo_oauth_contact_us_phone" placeholder="e.g. +1 702 123 4567" pattern="[\+]\d{11,14}|[\+]\d{1,4}[\s]\d{9,10}">
     47                <input class="input" type="tel" id="contact_us_phone" name="mo_oauth_contact_us_phone" placeholder="e.g. +1 702 123 4567" pattern="[\+]?[0-9]{1,4}[\s]?([0-9]{4,12})*">
    4848            </div>
    4949        </div>
     
    6363        <label class="label">Query</label>
    6464        <div class="control">
    65             <textarea class="textarea" name="mo_oauth_contact_us_query" placeholder="What can we help you with?" onkeyup="validate_query(this)" required></textarea>
     65            <textarea class="textarea" name="mo_oauth_contact_us_query" placeholder="What can we help you with?" required></textarea>
    6666        </div>
    6767        </div>
  • miniorange-oauth-20-server/trunk/admin/views/miniorange-oauth-20-server-settings-integrations.php

    r2927943 r2994557  
    126126        <div class="columns mt-4 is-multiline">
    127127            <?php foreach ( $oauth_client_list_json_data as $client_name => $client_fields ) : ?>
    128                 <div id="<?php echo esc_attr( $client_name ); ?>" class="column is-one-fifth-widescreen is-clickable is-one-quarter-mobile">
    129                     <figure class="image mx-auto is-rounded is-96x96 miniorange-oauth-20-server-logo is-flex is-align-items-center is-justify-content-center">
    130                         <img src="<?php echo esc_attr( MINIORANGE_OAUTH_20_SERVER_PLUGIN_DIR_URL ) . 'assets/' . esc_attr( $client_fields['image'] ); ?>">
    131                     </figure>
    132                     <p class="has-text-centered mt-2 is-size-6 has-text-weight-normal client-name"><?php echo esc_attr( $client_fields['label'] ); ?></p>
     128                <div id="<?php echo esc_attr( $client_name ); ?>" class="column is-one-fifth-widescreen is-one-quarter-mobile ">
     129                    <a target="_blank" href="<?php echo esc_url( $client_fields['setup_guide'] ); ?>">
     130                        <figure class="image mx-auto is-rounded is-96x96 miniorange-oauth-20-server-logo is-flex is-clickable is-align-items-center is-justify-content-center">
     131                            <img src="<?php echo esc_attr( MINIORANGE_OAUTH_20_SERVER_PLUGIN_DIR_URL ) . 'assets/' . esc_attr( $client_fields['image'] ); ?>">
     132                        </figure>
     133                        <p class="has-text-centered mt-2 is-size-6 has-text-weight-normal client-name"><?php echo esc_attr( $client_fields['label'] ); ?></p>
     134                    </a>
    133135                </div>
    134136            <?php endforeach; ?>
  • miniorange-oauth-20-server/trunk/mo_oauth_settings.php

    r2949326 r2994557  
    1616 * Plugin URI:        https://www.miniorange.com
    1717 * Description:       Setup your site as Identity Server to allow Login with WordPress or WordPress Login to other client application /site using OAuth / OpenID Connect protocols.
    18  * Version:           6.0.2
     18 * Version:           6.0.3
    1919 * Author:            miniOrange
    2020 * Author URI:        https://www.miniorange.com
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'MINIORANGE_OAUTH_20_SERVER_VERSION', '6.0.2' );
     37define( 'MINIORANGE_OAUTH_20_SERVER_VERSION', '6.0.3' );
    3838
    3939define( 'MINIORANGE_OAUTH_20_SERVER_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
  • miniorange-oauth-20-server/trunk/readme.txt

    r2949326 r2994557  
    33Tags: WordPress Login, OAuth Provider, OAuth Server, OAuth2, OpenID
    44Requires at least: 3.0.2
    5 Tested up to: 6.3
     5Tested up to: 6.4
    66Requires PHP: 5.4
    7 Stable tag: 6.0.2
     7Stable tag: 6.0.3
    88License: MIT/Expat
    99License URI: https://docs.miniorange.com/mit-license
     
    175175== Changelog ==
    176176
     177= 6.0.3 =
     178* Added compatibility with WP 6.4
     179* Phone number optional in support form.
     180* Fixed some JS errors.
     181
    177182= 6.0.2 =
    178183* Added compatibility with WP 6.3
     
    402407== Upgrade Notice ==
    403408
     409= 6.0.3 =
     410* Added compatibility with WP 6.4
     411* Phone number optional in support form.
     412* Fixed some JS errors.
     413
    404414= 6.0.2 =
    405415* Added compatibility with WP 6.3
Note: See TracChangeset for help on using the changeset viewer.