Plugin Directory

Changeset 2863095


Ignore:
Timestamp:
02/10/2023 09:28:48 AM (3 years ago)
Author:
kalpeshh
Message:

Added Nonce in missing flow and readme updates.

Location:
miniorange-login-openid/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • miniorange-login-openid/trunk/class-mo-openid-login-widget.php

    r2853010 r2863095  
    1313
    1414add_action( 'manage_users_custom_column', 'mo_openid_delete_profile_column', 9, 3 );
    15 add_filter( 'manage_users_columns', 'mo_openid_add_custom_column1' );
    16 add_action( 'admin_head', 'mo_openid_delete_social_profile_script' );
    1715add_filter( 'login_message', 'mo_openid_account_linking' );
    1816add_action(
     
    14271425            exit;
    14281426        }
    1429     } elseif ( ( isset( $_POST['action'] ) ) && ( strpos( sanitize_text_field( $_POST['action'] ), 'delete_social_profile_data' ) !== false ) && isset( $_POST['user_id'] ) ) {
    1430         // delete first name, last name, user_url and profile_url from usermeta
    1431         $id = sanitize_text_field( $_POST['user_id'] );
    1432         mo_openid_delete_social_profile( $id );
    14331427    } elseif ( isset( $_REQUEST['option'] ) and strpos( sanitize_text_field( $_REQUEST['option'] ), 'oauthredirect' ) !== false ) {
    14341428        if ( isset( $_REQUEST['wp_nonce'] ) ) {
  • miniorange-login-openid/trunk/miniorange_openid_sso_settings.php

    r2853010 r2863095  
    55 * Plugin URI: https://www.miniorange.com
    66 * Description: Allow your users to login, comment and share with Facebook, Google, Apple, Twitter, LinkedIn etc using customizable buttons.
    7  * Version: 7.6.0
     7 * Version: 7.6.1
    88 * Author: <a href="https://www.miniorange.com/">miniOrange</a>
    99 * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
    1010 */
    1111
    12 define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.6.0');
     12define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.6.1');
    1313define('PLUGIN_URL', esc_url(plugin_dir_url(__FILE__)) . "includes/images/icons/");
    1414define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
  • miniorange-login-openid/trunk/miniorange_openid_sso_settings_page.php

    r2853010 r2863095  
    597597
    598598        function end_new_tour2(){
    599 
     599            var mo_openid_tour_nonce = '<?php echo esc_attr( wp_create_nonce( 'mo-openid-tour-nonce' ) ); ?>';
    600600            var tour_variable = "plugin_tour";
    601601            jQuery.ajax({
    602602                url:base_url+'/wp-admin/admin.php?page=mo_openid_general_settings&tab=config_apps', //the page containing php script
     603
    603604                method: "POST", //request type,
    604                 data: {update_tour_status: tour_variable},
     605                data: {
     606                    update_tour_status: tour_variable,
     607                    'mo_openid_tour_nonce': mo_openid_tour_nonce,
     608                },
    605609                dataType: 'text',
    606610                success:function(result){
  • miniorange-login-openid/trunk/mo-openid-social-login-functions.php

    r2853010 r2863095  
    14281428}
    14291429
    1430 function mo_openid_add_custom_column1( $columns ) {
    1431     $columns['mo_openid_delete_profile_data'] = 'Delete Social Profile Data';
    1432     return $columns;
    1433 }
    1434 
    1435 function mo_openid_delete_social_profile_script() {
    1436     ?>
    1437     <script type="text/javascript">
    1438         function moOpenidDeleteSocialProfile(elem, userId){
    1439             jQuery.ajax({
    1440                 url:"<?php echo esc_url( admin_url() ); ?>", //the page containing php script
    1441                 method: "POST", //request type,
    1442                 data: {action : 'delete_social_profile_data', user_id : userId},
    1443                 dataType: 'text',
    1444                 success:function(result){
    1445                     alert('Social Profile Data Deleted successfully. Press OK to continue.');
    1446                     window.location.reload(true);
    1447                 }
    1448             });
    1449         }
    1450         function copyToClipboard(copyButton, element, copyelement) {
    1451             var temp = jQuery("<input>");
    1452             jQuery("body").append(temp);
    1453             temp.val(jQuery(element).text()).select();
    1454             document.execCommand("copy");
    1455             temp.remove();
    1456             jQuery(copyelement).text("Copied");
    1457             jQuery(copyButton).mouseout(function(){
    1458                 jQuery(copyelement).text("Copy to Clipboard");
    1459             });
    1460         }
    1461     </script>
    1462     <?php
    1463 }
     1430
  • miniorange-login-openid/trunk/readme.txt

    r2853010 r2863095  
    22Contributors: sociallogin, vkontakte, cyberlord92
    33Donate link: https://www.miniorange.com
    4 Tags: social login, facebook login, google login, social sharing, twitter login, linkedIn, user login, vkontakte login, social comments, social commenting, woocommerce login, facebook, twitter, google, social connect, social network login, social plugin, windows, microsoft, discord login, openID, OAuth Login, User Login, social media login, user registration, social sign in. 
     4Tags: social login, facebook login, google login, social sharing, twitter login, linkedIn, user login, vkontakte login, social comments, social commenting, woocommerce login, facebook, twitter, google, social connect, social network login, social plugin, discord login, openID, OAuth Login, User Login, social media login, user registration, social sign in. 
    55Requires at least: 2.0.2
    66Tested up to: 6.1
    7 Stable tag: 7.6.0
     7Stable tag: 7.6.1
    88License: GPLv2 or later
    99License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
     
    2727
    2828*   Social Login with <a href="https://plugins.miniorange.com/configure-facebook-social-login-in-wordpress" target="_blank">Facebook</a>, <a href="https://plugins.miniorange.com/login-with-google-using-wordpress-social-login" target="_blank">Google</a>, <a href="https://plugins.miniorange.com/configure-discord-with-social-login-in-wordpress" target="_blank">Discord</a>, <a href="https://plugins.miniorange.com/configure-twitter-with-social-login-in-wordpress" target="_blank">Twitter</a>, <a href="http://plugins.miniorange.com/configure-vkontakte-with-social-login-in-wordpress" target="_blank">Vkontakte</a>, <a href="https://plugins.miniorange.com/configure-linkedin-with-social-login-in-wordpress" target="_blank">LinkedIn</a>, <a href="http://plugins.miniorange.com/configure-amazon-with-social-login-in-wordpress" target="_blank">Amazon</a>, Salesforce & <a href="https://plugins.miniorange.com/guide-to-configure-yahoo-social-login-in-wordpress" target="_blank">Yahoo</a>,etc.
    29 *   **One-click** activation for Login with Google, Amazon, Vkontakte, LinkedIn, Windows Live (Microsoft login), Yahoo, Salesforce, Snapchat and Dribbble.
     29*   **One-click** activation for Login with Google, Amazon, Vkontakte, LinkedIn, Yahoo, Salesforce, Snapchat and Dribbble.
    3030*   **Flexible display** - Display Social login icons anywhere on your websites.
    3131*   **Sync user data** - Sync user data from multiple social network providers like Facebook, Google, Microsoft into one social login account.
     
    3535*   **Assign user roles** - Assign WordPress roles to users on registration through social login.
    3636*   **Shortcodes** - Use Shortcode anywhere on your website to display social login icons.
    37 *   **Take full control** - Setup your social login applications with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Amazon, Windows Live & Yahoo.
     37*   **Take full control** - Setup your social login applications with APP ID and APP Secret for Facebook, Google, Twitter, Vkontakte, LinkedIn, Amazon, & Yahoo.
    3838*   **Preview** - Preview custom social login icons before you publish them on your website.
    3939*   **Profile completion** (username, email) - Prompt users for email-id & username if social login app doesn't return it. Verify Emails using verification code.
     
    100100
    101101= Why miniOrange Social Login =
    102 * **13 Free Social Login apps** - Login with popular social network providers namely Facebook, Google, Discord, Twitter, LinkedIn, Vkontakte, Windows Live, Amazon, Salesforce, Yahoo, Snapchat and Dribbble all available in the free plan.
     102* **11 Free Social Login apps** - Login with popular social network providers namely Facebook, Google, Discord, Twitter, LinkedIn, Vkontakte, Amazon, Salesforce, Yahoo, Snapchat and Dribbble all available in the free plan.
    103103* **No Setup required** - Simply register with us and use our pre-configured application. We will handle everything for you.
    104104* **24 / 7 Support** - If you face any issues or if you simply require assistance with the Social Login plugin then please contact us. Whatever it may be we will solve the issue for you and get everything working as soon as possible.
     
    142142
    143143*   **40+ Social Login Providers** - Choose from 40+ applications (Facebook Login, Google Login, Discord Login etc.) for social login and user registration. Many social network providers added continuously.
    144 *   **One-click activation** - For Login with Discord, Apple, Facebook, Google, Amazon, Vkontakte, LinkedIn, Windows Live (Microsoft login), WordPress, Yahoo, Salesforce, Stackoverflow, Mailchimp, Strava etc.
     144*   **One-click activation** - For Login with Discord, Apple, Facebook, Google, Amazon, Vkontakte, LinkedIn, WordPress, Yahoo, Salesforce, Stackoverflow, Mailchimp, Strava etc.
    145145*   **Social login Integrations** - Social integrations with popular WordPress plugins like <a href="https://plugins.miniorange.com/guide-to-configure-woocommerce-with-wordpress-social-login" target="_blank">WooCommerce</a>, <a href="https://plugins.miniorange.com/guide-to-configure-paid-membership-pro-with-wordpress-social-login" target="_blank">Paid Memberships Pro</a>, <a href="https://plugins.miniorange.com/guide-to-configure-buddypress-with-wordpress-social-login" target="_blank">BuddyPress</a>, <a href="https://plugins.miniorange.com/guide-to-configure-mailchimp-integration-with-wordpress-social-login" target="_blank">MailChimp</a> and HubSpot.
    146146*   **Social Login Integrations** - Social login icons on WooCommerce pages, BuddyPress pages, Paid Memberships Pro pages, MemberPress pages, Ultimate Member pages.
     
    277277
    278278==Changelog==
     279= 7.6.1 =
     280* Security Fixes.
     281* Readme update.
     282
    279283= 7.6.0 =
    280284* Discontinue the Temporary admin login feature.
     
    10121016
    10131017== Upgrade Notice ==
     1018= 7.6.1 =
     1019* Security Fixes.
     1020* Readme update.
     1021
    10141022= 7.6.0 =
    10151023* Discontinue the Temporary admin login feature.
  • miniorange-login-openid/trunk/view/config_apps/mo_openid_config_apps.php

    r2853010 r2863095  
    44{
    55    if (isset($_POST['update_tour_status'])){ //phpcs:ignore
    6         update_option('mo_openid_tour_new','1');
     6        $nonce = sanitize_text_field($_POST['mo_openid_tour_nonce']);
     7        if (!wp_verify_nonce($nonce, 'mo-openid-tour-nonce')) {
     8            wp_die('<strong>ERROR</strong>: Please Go back and Refresh the page and try again!<br/>If you still face the same issue please contact your Administrator.');
     9        } else {
     10            if(current_user_can('administrator')){
     11                update_option('mo_openid_tour_new','1');
     12            }
     13        }
    714    }
    815    ?>
     
    11641171                        action: 'mo_openid_rating_given',
    11651172                        rating: rating,
    1166                         'mo_openid_rating_given' : mo_openid_rating_given,
     1173                        'mo_openid_rating_given' : mo_openid_rating_given_nonce,
    11671174                    },
    11681175                    success: function (result) { }
  • miniorange-login-openid/trunk/view/rate_us/rate_us.php

    r2853010 r2863095  
    7272                action: 'mo_openid_rating_given',
    7373                rating: rating,
    74                 'mo_openid_rating_given' : mo_openid_rating_given,
     74                'mo_openid_rating_given' : mo_openid_rating_given_nonce,
    7575            },
    7676            success: function (result) {
Note: See TracChangeset for help on using the changeset viewer.