Plugin Directory

Changeset 1679807


Ignore:
Timestamp:
06/16/2017 10:57:42 AM (9 years ago)
Author:
ider
Message:

Tagging version 1.5.4

Location:
ider-login
Files:
5 edited
26 copied

Legend:

Unmodified
Added
Removed
  • ider-login/tags/1.5.4/includes/IDER_Admin.php

    r1673502 r1679807  
    8888                    <li>Set the campaign id to retrieve the user data you chose.</li>
    8989                    <li>If you open a custom campaign and want your customer to land on a specific page, please configure it in the advanced setting "Campaigns Landing pages" using the format <strong>&lt;Campaign id&gt;=&lt;Landing Page&gt;</strong>
     90                    <li>You can place the IDer button everywhere using widget, the classic form or the shortcode [ider_login_button]</li>
    9091                    </li>
    9192                </ol>
     
    112113
    113114                    <tr valign="top">
    114                         <th scope="row">Login button scope</th>
     115                        <th scope="row">Scope Name</th>
    115116                        <td>
    116117                            <input type="text" name="<?php echo $this->option_name ?>[extra_scopes]" min="10"
     
    128129                    </tr>
    129130
    130 
    131                     <tr valign="top">
    132                         <th scope="row">Redirect to the IDer welcome page</th>
    133                         <td>
    134                             <input type="checkbox" name="<?php echo $this->option_name ?>[redirect_to_page]"
    135                                    value="1" <?php echo $options['redirect_to_page'] == 1 ? 'checked="checked"' : ''; ?> />
    136                         </td>
    137                     </tr>
    138 
    139 
    140131                    <tr valign="top">
    141132                        <th scope="row">Welcome page</th>
     
    144135                                                             name="<?php echo $this->option_name ?>[welcome_page]"
    145136                                                             min="10"
    146                                                              value="<?php echo $options["welcome_page"]; ?>"/>
     137                                                             value="<?php echo preg_replace('/^(\/)*/i','',str_replace(site_url(), '' ,$options["welcome_page"])); ?>"/>
    147138                        </td>
    148139                    </tr>
     
    197188    public function validate($input)
    198189    {
    199         $input['redirect_to_page'] = isset($input['redirect_to_page']) ? $input['redirect_to_page'] : 0;
     190
     191        $input['client_id'] = trim($input['client_id']);
     192        $input['client_secret'] = trim($input['client_secret']);
     193        $input['extra_scopes'] = trim($input['extra_scopes']);
     194        $input['welcome_page'] = site_url(trim($input['welcome_page']));
    200195
    201196        return $input;
  • ider-login/tags/1.5.4/includes/IDER_Callback.php

    r1664624 r1679807  
    6363            apply_filters('after_callback_handler', $user_info, $_SESSION['openid_connect_scope']);
    6464
    65             if (true == IDER_Server::get_option('redirect_to_page')) {
    66                 wp_redirect(IDER_Server::get_option('welcome_page'));
    67             } else {
    68                 wp_redirect(home_url());
    69             }
     65            wp_redirect(IDER_Server::get_option('welcome_page'));
     66
    7067            exit;
    7168        }
  • ider-login/tags/1.5.4/includes/IDER_Server.php

    r1664624 r1679807  
    2323        'client_secret' => '',
    2424        'extra_scopes' => '',
    25         'redirect_to_page' => true,
    2625        'login_form_button' => true,
    2726        'welcome_page' => 'my-account/ider-profile',
     
    181180    public function setup()
    182181    {
    183         $options = get_option("wposso_options");
    184         if (!isset($options["server_url"])) {
    185             update_option("wposso_options", self::$default_settings);
    186         }
     182
     183        $options = self::$default_settings;
     184
     185        // if woocommerce then set the welcome page to user profile
     186        if (class_exists('WooCommerce')) {
     187            $options['welcome_page'] = site_url('my-account/ider-profile');
     188        } else {
     189            $options['welcome_page'] = home_url();
     190        }
     191
     192        update_option("wposso_options", $options);
     193
     194    }
     195
     196
     197    /**
     198     * Plugin Setup
     199     */
     200    public function upgrade()
     201    {
     202
    187203    }
    188204
  • ider-login/tags/1.5.4/readme.md

    r1673502 r1679807  
    33Requires at least: 4.6
    44Tested up to: 4.7.3
    5 Stable tag: 1.5.3
     5Stable tag: 1.5.4
    66License: Apache License, Version 2.0 or later
    77License URI: http://directory.fsf.org/wiki/License:Apache2.0
  • ider-login/tags/1.5.4/wp-ider-login-client.php

    r1673502 r1679807  
    33 * Plugin Name: IDer Login
    44 * Plugin URI: https://www.ider.com
    5  * Version: 1.5.3
     5 * Version: 1.5.4
    66 * Description: Provides Single Sign On via IDer Identity Server
    77 * Author: JLM srl
     
    3434
    3535if (!defined('IDER_CLIENT_VERSION')) {
    36     define('IDER_CLIENT_VERSION', '0.8.0');
     36    define('IDER_CLIENT_VERSION', '1.5.4');
    3737}
    3838
  • ider-login/trunk/includes/IDER_Admin.php

    r1673502 r1679807  
    8888                    <li>Set the campaign id to retrieve the user data you chose.</li>
    8989                    <li>If you open a custom campaign and want your customer to land on a specific page, please configure it in the advanced setting "Campaigns Landing pages" using the format <strong>&lt;Campaign id&gt;=&lt;Landing Page&gt;</strong>
     90                    <li>You can place the IDer button everywhere using widget, the classic form or the shortcode [ider_login_button]</li>
    9091                    </li>
    9192                </ol>
     
    112113
    113114                    <tr valign="top">
    114                         <th scope="row">Login button scope</th>
     115                        <th scope="row">Scope Name</th>
    115116                        <td>
    116117                            <input type="text" name="<?php echo $this->option_name ?>[extra_scopes]" min="10"
     
    128129                    </tr>
    129130
    130 
    131                     <tr valign="top">
    132                         <th scope="row">Redirect to the IDer welcome page</th>
    133                         <td>
    134                             <input type="checkbox" name="<?php echo $this->option_name ?>[redirect_to_page]"
    135                                    value="1" <?php echo $options['redirect_to_page'] == 1 ? 'checked="checked"' : ''; ?> />
    136                         </td>
    137                     </tr>
    138 
    139 
    140131                    <tr valign="top">
    141132                        <th scope="row">Welcome page</th>
     
    144135                                                             name="<?php echo $this->option_name ?>[welcome_page]"
    145136                                                             min="10"
    146                                                              value="<?php echo $options["welcome_page"]; ?>"/>
     137                                                             value="<?php echo preg_replace('/^(\/)*/i','',str_replace(site_url(), '' ,$options["welcome_page"])); ?>"/>
    147138                        </td>
    148139                    </tr>
     
    197188    public function validate($input)
    198189    {
    199         $input['redirect_to_page'] = isset($input['redirect_to_page']) ? $input['redirect_to_page'] : 0;
     190
     191        $input['client_id'] = trim($input['client_id']);
     192        $input['client_secret'] = trim($input['client_secret']);
     193        $input['extra_scopes'] = trim($input['extra_scopes']);
     194        $input['welcome_page'] = site_url(trim($input['welcome_page']));
    200195
    201196        return $input;
  • ider-login/trunk/includes/IDER_Callback.php

    r1664624 r1679807  
    6363            apply_filters('after_callback_handler', $user_info, $_SESSION['openid_connect_scope']);
    6464
    65             if (true == IDER_Server::get_option('redirect_to_page')) {
    66                 wp_redirect(IDER_Server::get_option('welcome_page'));
    67             } else {
    68                 wp_redirect(home_url());
    69             }
     65            wp_redirect(IDER_Server::get_option('welcome_page'));
     66
    7067            exit;
    7168        }
  • ider-login/trunk/includes/IDER_Server.php

    r1664624 r1679807  
    2323        'client_secret' => '',
    2424        'extra_scopes' => '',
    25         'redirect_to_page' => true,
    2625        'login_form_button' => true,
    2726        'welcome_page' => 'my-account/ider-profile',
     
    181180    public function setup()
    182181    {
    183         $options = get_option("wposso_options");
    184         if (!isset($options["server_url"])) {
    185             update_option("wposso_options", self::$default_settings);
    186         }
     182
     183        $options = self::$default_settings;
     184
     185        // if woocommerce then set the welcome page to user profile
     186        if (class_exists('WooCommerce')) {
     187            $options['welcome_page'] = site_url('my-account/ider-profile');
     188        } else {
     189            $options['welcome_page'] = home_url();
     190        }
     191
     192        update_option("wposso_options", $options);
     193
     194    }
     195
     196
     197    /**
     198     * Plugin Setup
     199     */
     200    public function upgrade()
     201    {
     202
    187203    }
    188204
  • ider-login/trunk/readme.md

    r1673502 r1679807  
    33Requires at least: 4.6
    44Tested up to: 4.7.3
    5 Stable tag: 1.5.3
     5Stable tag: 1.5.4
    66License: Apache License, Version 2.0 or later
    77License URI: http://directory.fsf.org/wiki/License:Apache2.0
  • ider-login/trunk/wp-ider-login-client.php

    r1673502 r1679807  
    33 * Plugin Name: IDer Login
    44 * Plugin URI: https://www.ider.com
    5  * Version: 1.5.3
     5 * Version: 1.5.4
    66 * Description: Provides Single Sign On via IDer Identity Server
    77 * Author: JLM srl
     
    3434
    3535if (!defined('IDER_CLIENT_VERSION')) {
    36     define('IDER_CLIENT_VERSION', '0.8.0');
     36    define('IDER_CLIENT_VERSION', '1.5.4');
    3737}
    3838
Note: See TracChangeset for help on using the changeset viewer.