Social Login - Version 7.3.10

Version Description

  • Facebook API updated.
  • Minor UI Changes.
Download this release

Release Info

Developer cyberlord92
Plugin Icon 128x128 Social Login
Version 7.3.10
Comparing to
See all releases

Code changes from version 7.3.9 to 7.3.10

class-mo-openid-login-widget.php CHANGED
@@ -1223,7 +1223,7 @@ function mo_openid_login_validate(){
1223
  if (isset($_REQUEST['wp_nonce'])) {
1224
  $nonce = sanitize_text_field($_REQUEST['wp_nonce']);
1225
  if (!wp_verify_nonce($nonce, 'mo-openid-get-social-login-nonce')) {
1226
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1227
  } else {
1228
  mo_openid_initialize_social_login();
1229
  }
@@ -1232,7 +1232,7 @@ function mo_openid_login_validate(){
1232
  else if( isset($_POST['mo_openid_go_back_registration_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_go_back_registration" ){
1233
  $nonce = sanitize_text_field($_POST['mo_openid_go_back_registration_nonce']);
1234
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-go-back-register-nonce' ) ) {
1235
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1236
  } else {
1237
  update_option('mo_openid_verify_customer','true');
1238
  }
@@ -1240,7 +1240,7 @@ function mo_openid_login_validate(){
1240
  else if ( isset($_POST['mo_openid_custom_form_submitted_nonce']) and isset($_POST['username']) and $_POST['option'] == 'mo_openid_custom_form_submitted' ){
1241
  $nonce = sanitize_text_field($_POST['mo_openid_custom_form_submitted_nonce']);
1242
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-custom-form-submitted-nonce' ) ) {
1243
- wp_die('<strong>ERROR</strong>: Invalid Request.' . $nonce);
1244
  } else {
1245
  global $wpdb;
1246
  $db_prefix = $wpdb->prefix;
@@ -1341,7 +1341,7 @@ function mo_openid_login_validate(){
1341
  else if(isset($_POST['mo_openid_profile_form_submitted_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_profile_form_submitted"){
1342
  $nonce = sanitize_text_field($_POST['mo_openid_profile_form_submitted_nonce']);
1343
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-profile-form-submitted-nonce' ) ) {
1344
- wp_die('<strong>ERROR</strong>: Invalid Request.' . $nonce);
1345
  } else {
1346
  $username = sanitize_text_field($_POST['username_field']);
1347
  $user_email = sanitize_email($_POST['email_field']);
@@ -1358,7 +1358,7 @@ function mo_openid_login_validate(){
1358
  else if( isset($_POST['mo_openid_go_back_login_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_go_back_login" ){
1359
  $nonce = sanitize_text_field($_POST['mo_openid_go_back_login_nonce']);
1360
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-go-back-login-nonce' ) ) {
1361
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1362
  } else {
1363
  update_option('mo_openid_registration_status','');
1364
  delete_option('mo_openid_admin_email');
@@ -1371,7 +1371,7 @@ function mo_openid_login_validate(){
1371
  else if(isset($_POST['mo_openid_forgot_password_nonce']) and isset($_POST['option']) and $_POST['option'] == 'mo_openid_forgot_password'){
1372
  $nonce = sanitize_text_field($_POST['mo_openid_forgot_password_nonce']);
1373
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-forgot-password-nonce' ) ) {
1374
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1375
  } else {
1376
  $email ='';
1377
  if( mo_openid_check_empty_or_null( $email ) ) {
@@ -1409,7 +1409,7 @@ function mo_openid_login_validate(){
1409
  else if( isset($_POST['mo_openid_connect_register_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_register_customer" ) { //register the admin to miniOrange
1410
  $nonce = sanitize_text_field($_POST['mo_openid_connect_register_nonce']);
1411
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-connect-register-nonce' ) ) {
1412
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1413
  } else {
1414
  mo_openid_register_user();
1415
  }
@@ -1421,7 +1421,7 @@ function mo_openid_login_validate(){
1421
  else if( isset($_POST['mo_openid_account_linking_nonce']) and isset($_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_account_linking' ) !== false ){
1422
  $nonce = sanitize_text_field($_POST['mo_openid_account_linking_nonce']);
1423
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-account-linking-nonce' ) ) {
1424
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1425
  } else {
1426
  mo_openid_start_session();
1427
  //link account
@@ -1455,7 +1455,7 @@ function mo_openid_login_validate(){
1455
  else if( isset($_POST['mo_openid_show_profile_form_nonce']) and isset( $_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_show_profile_form' ) !== false ){
1456
  $nonce = sanitize_text_field($_POST['mo_openid_show_profile_form_nonce']);
1457
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-user-show-profile-form-nonce' ) ) {
1458
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1459
  } else {
1460
 
1461
  $user_details= array(
@@ -1483,7 +1483,7 @@ function mo_openid_login_validate(){
1483
  if(isset($_REQUEST['wp_nonce'])){
1484
  $nonce = sanitize_text_field($_REQUEST['wp_nonce']);
1485
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-oauth-app-nonce' ) ) {
1486
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1487
  }
1488
  else {
1489
  $appname = sanitize_text_field($_REQUEST['app_name']);
@@ -1496,7 +1496,7 @@ function mo_openid_login_validate(){
1496
  {
1497
  $nonce = sanitize_text_field($_POST['mo_openid_user_otp_validation_nonce']);
1498
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-user-otp-validation-nonce' ) ) {
1499
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1500
  } else {
1501
  $username = sanitize_text_field($_POST["username_field"]);
1502
  $user_email = sanitize_email($_POST["email_field"]);
@@ -1528,7 +1528,7 @@ function mo_openid_login_validate(){
1528
  else if( isset($_POST['mo_openid_connect_verify_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_verify_customer" ) { //register the admin to miniOrange
1529
  $nonce = sanitize_text_field($_POST['mo_openid_connect_verify_nonce']);
1530
  if (!wp_verify_nonce($nonce, 'mo-openid-connect-verify-nonce')) {
1531
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1532
  }
1533
  else {
1534
  mo_register_old_user();
1223
  if (isset($_REQUEST['wp_nonce'])) {
1224
  $nonce = sanitize_text_field($_REQUEST['wp_nonce']);
1225
  if (!wp_verify_nonce($nonce, 'mo-openid-get-social-login-nonce')) {
1226
+ 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.');
1227
  } else {
1228
  mo_openid_initialize_social_login();
1229
  }
1232
  else if( isset($_POST['mo_openid_go_back_registration_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_go_back_registration" ){
1233
  $nonce = sanitize_text_field($_POST['mo_openid_go_back_registration_nonce']);
1234
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-go-back-register-nonce' ) ) {
1235
+ 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.');
1236
  } else {
1237
  update_option('mo_openid_verify_customer','true');
1238
  }
1240
  else if ( isset($_POST['mo_openid_custom_form_submitted_nonce']) and isset($_POST['username']) and $_POST['option'] == 'mo_openid_custom_form_submitted' ){
1241
  $nonce = sanitize_text_field($_POST['mo_openid_custom_form_submitted_nonce']);
1242
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-custom-form-submitted-nonce' ) ) {
1243
+ 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.');
1244
  } else {
1245
  global $wpdb;
1246
  $db_prefix = $wpdb->prefix;
1341
  else if(isset($_POST['mo_openid_profile_form_submitted_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_profile_form_submitted"){
1342
  $nonce = sanitize_text_field($_POST['mo_openid_profile_form_submitted_nonce']);
1343
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-profile-form-submitted-nonce' ) ) {
1344
+ 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.');
1345
  } else {
1346
  $username = sanitize_text_field($_POST['username_field']);
1347
  $user_email = sanitize_email($_POST['email_field']);
1358
  else if( isset($_POST['mo_openid_go_back_login_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_go_back_login" ){
1359
  $nonce = sanitize_text_field($_POST['mo_openid_go_back_login_nonce']);
1360
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-go-back-login-nonce' ) ) {
1361
+ 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.');
1362
  } else {
1363
  update_option('mo_openid_registration_status','');
1364
  delete_option('mo_openid_admin_email');
1371
  else if(isset($_POST['mo_openid_forgot_password_nonce']) and isset($_POST['option']) and $_POST['option'] == 'mo_openid_forgot_password'){
1372
  $nonce = sanitize_text_field($_POST['mo_openid_forgot_password_nonce']);
1373
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-forgot-password-nonce' ) ) {
1374
+ 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.');
1375
  } else {
1376
  $email ='';
1377
  if( mo_openid_check_empty_or_null( $email ) ) {
1409
  else if( isset($_POST['mo_openid_connect_register_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_register_customer" ) { //register the admin to miniOrange
1410
  $nonce = sanitize_text_field($_POST['mo_openid_connect_register_nonce']);
1411
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-connect-register-nonce' ) ) {
1412
+ 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.');
1413
  } else {
1414
  mo_openid_register_user();
1415
  }
1421
  else if( isset($_POST['mo_openid_account_linking_nonce']) and isset($_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_account_linking' ) !== false ){
1422
  $nonce = sanitize_text_field($_POST['mo_openid_account_linking_nonce']);
1423
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-account-linking-nonce' ) ) {
1424
+ 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.');
1425
  } else {
1426
  mo_openid_start_session();
1427
  //link account
1455
  else if( isset($_POST['mo_openid_show_profile_form_nonce']) and isset( $_POST['option'] ) and strpos( $_POST['option'], 'mo_openid_show_profile_form' ) !== false ){
1456
  $nonce = sanitize_text_field($_POST['mo_openid_show_profile_form_nonce']);
1457
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-user-show-profile-form-nonce' ) ) {
1458
+ 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.');
1459
  } else {
1460
 
1461
  $user_details= array(
1483
  if(isset($_REQUEST['wp_nonce'])){
1484
  $nonce = sanitize_text_field($_REQUEST['wp_nonce']);
1485
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-oauth-app-nonce' ) ) {
1486
+ 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.');
1487
  }
1488
  else {
1489
  $appname = sanitize_text_field($_REQUEST['app_name']);
1496
  {
1497
  $nonce = sanitize_text_field($_POST['mo_openid_user_otp_validation_nonce']);
1498
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-user-otp-validation-nonce' ) ) {
1499
+ 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.');
1500
  } else {
1501
  $username = sanitize_text_field($_POST["username_field"]);
1502
  $user_email = sanitize_email($_POST["email_field"]);
1528
  else if( isset($_POST['mo_openid_connect_verify_nonce']) and isset( $_POST['option'] ) and $_POST['option'] == "mo_openid_connect_verify_customer" ) { //register the admin to miniOrange
1529
  $nonce = sanitize_text_field($_POST['mo_openid_connect_verify_nonce']);
1530
  if (!wp_verify_nonce($nonce, 'mo-openid-connect-verify-nonce')) {
1531
+ 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.');
1532
  }
1533
  else {
1534
  mo_register_old_user();
includes/css/mo_openid_style.css CHANGED
@@ -1337,8 +1337,6 @@ aside.widget-area>section.widget_mo_openid_sharing_hor_wid>div.mo-openid-app-ico
1337
  border-radius: 50%;
1338
  }
1339
 
1340
- body {font-family: Arial, Helvetica, sans-serif;}
1341
-
1342
  /* The Modal (background) */
1343
  .modal {
1344
  display: none; /* Hidden by default */
1337
  border-radius: 50%;
1338
  }
1339
 
 
 
1340
  /* The Modal (background) */
1341
  .modal {
1342
  display: none; /* Hidden by default */
miniorange_openid_sso_settings.php CHANGED
@@ -4,12 +4,12 @@
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Apple, Twitter, LinkedIn etc using customizable buttons.
7
- * Version: 7.3.9
8
  * Author: miniOrange
9
  * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
  */
11
 
12
- define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.3.9');
13
  define('plugin_url', plugin_dir_url(__FILE__) . "includes/images/icons/");
14
  define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
15
  require('miniorange_openid_sso_settings_page.php');
@@ -341,7 +341,7 @@ Thank you.';
341
  case 'mo_openid_customise_social_icons':
342
  $nonce = sanitize_text_field($_POST['mo_openid_customise_social_icons_nonce']);
343
  if (!wp_verify_nonce($nonce, 'mo-openid-customise-social-icons-nonce')) {
344
- wp_die('<strong>ERROR</strong>: Invalid Request.');
345
  }
346
  else{
347
  update_option('mo_openid_login_theme',isset($_POST['mo_openid_login_theme'])? sanitize_text_field($_POST['mo_openid_login_theme']):"");
@@ -366,7 +366,7 @@ Thank you.';
366
  if (!mo_openid_restrict_user()) {
367
  $nonce = sanitize_text_field($_POST['mo_openid_enable_gdpr_nonce']);
368
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-gdpr-nonce')) {
369
- wp_die('<strong>ERROR</strong>: Invalid Request.');
370
  } else {
371
  // GDPR options
372
  update_option('mo_openid_gdpr_consent_enable', isset($_POST['mo_openid_gdpr_consent_enable']) ? sanitize_text_field($_POST['mo_openid_gdpr_consent_enable']) : 0);
@@ -382,7 +382,7 @@ Thank you.';
382
  case 'mo_openid_contact_us_query_option':
383
  $nonce = sanitize_text_field($_POST['mo_openid_contact_us_nonce']);
384
  if (!wp_verify_nonce($nonce, 'mo-openid-contact-us-nonce')) {
385
- wp_die('<strong>ERROR</strong>: Invalid Request.');
386
  } else {
387
 
388
  // Contact Us query
@@ -410,7 +410,7 @@ Thank you.';
410
  case 'mo_openid_rateus_query_option':
411
  $nonce = sanitize_text_field($_POST['mo_openid_rateus_nonce']);
412
  if (!wp_verify_nonce($nonce, 'mo-openid-rateus-nonce')) {
413
- wp_die('<strong>ERROR</strong>: Invalid Request.');
414
  } else {
415
 
416
  // Rate Us query
@@ -436,7 +436,7 @@ Thank you.';
436
  case 'cronmo_openid_rateus_query_option':
437
  $nonce = sanitize_text_field($_POST['cronmo_openid_rateus_nonce']);
438
  if (!wp_verify_nonce($nonce, 'cronmo-openid-rateus-nonce')) {
439
- wp_die('<strong>ERROR</strong>: Invalid Request.');
440
  } else {
441
 
442
  // Rate Us query
@@ -465,7 +465,7 @@ Thank you.';
465
  case 'mo_openid_enable_redirect':
466
  $nonce=sanitize_text_field($_POST['mo_openid_enable_redirect_nonce']);
467
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-redirect-nonce')) {
468
- wp_die('<strong>ERROR</strong>: Invalid Request.');
469
  }else {
470
  //Redirect URL
471
  update_option('mo_openid_login_redirect', isset($_POST['mo_openid_login_redirect'])?sanitize_text_field($_POST['mo_openid_login_redirect']):"");
@@ -484,7 +484,7 @@ Thank you.';
484
  case 'mo_openid_enable_registration':
485
  $nonce=sanitize_text_field($_POST['mo_openid_enable_registration_nonce']);
486
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-registration-nonce')) {
487
- wp_die('<strong>ERROR</strong>: Invalid Request.');
488
  }else {
489
  update_option('mo_openid_auto_register_enable', isset($_POST['mo_openid_auto_register_enable']) ? sanitize_text_field($_POST['mo_openid_auto_register_enable']) : 0);
490
  update_option('mo_openid_register_disabled_message',isset($_POST['mo_openid_register_disabled_message'])? sanitize_text_field($_POST['mo_openid_register_disabled_message']):"");
@@ -499,7 +499,7 @@ Thank you.';
499
  case 'mo_openid_enable_display':
500
  $nonce=sanitize_text_field($_POST['mo_openid_enable_display_nonce']);
501
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-display-nonce')) {
502
- wp_die('<strong>ERROR</strong>: Invalid Request.');
503
  }else {
504
  update_option('mo_openid_default_login_enable', isset($_POST['mo_openid_default_login_enable']) ? sanitize_text_field($_POST['mo_openid_default_login_enable']) : 0);
505
  update_option('mo_openid_default_register_enable', isset($_POST['mo_openid_default_register_enable']) ? sanitize_text_field($_POST['mo_openid_default_register_enable']) : 0);
@@ -515,7 +515,7 @@ Thank you.';
515
  case 'mo_openid_verify_license':
516
  $nonce = sanitize_text_field($_POST['mo_openid_verify_license_nonce']);
517
  if (!wp_verify_nonce($nonce, 'mo-openid-verify-license-nonce')) {
518
- wp_die('<strong>ERROR</strong>: Invalid Request.');
519
  }
520
  else {
521
  $code = trim($_POST['openid_licence_key']);
@@ -566,7 +566,7 @@ Thank you.';
566
  if (!mo_openid_restrict_user()) {
567
  $nonce = sanitize_text_field($_POST['mo_openid_enable_account_linking_nonce']);
568
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-account-linking-nonce')) {
569
- wp_die('<strong>ERROR</strong>: Invalid Request.');
570
  } else {
571
  update_option('mo_openid_account_linking_enable', isset($_POST['mo_openid_account_linking_enable']) ? sanitize_text_field($_POST['mo_openid_account_linking_enable']) : 0);
572
  update_option('mo_account_linking_title', isset($_POST['mo_account_linking_title']) ? sanitize_text_field($_POST['mo_account_linking_title']) : "");
@@ -586,7 +586,7 @@ Thank you.';
586
  case 'mo_openid_profile_completion':
587
  $nonce = sanitize_text_field($_POST['mo_openid_enable_profile_completion_nonce']);
588
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-premium-feature-nonce')) {
589
- wp_die('<strong>ERROR</strong>: Invalid Request.');
590
  } else {
591
  if(strpos($_POST['custom_otp_msg'], '##otp##' ) !== false) {
592
  //$_POST['custom_otp_msg'] = stripslashes($_POST['custom_otp_msg']);
@@ -620,7 +620,7 @@ Thank you.';
620
  case 'mo_openid_enable_customize_text':
621
  $nonce=sanitize_text_field($_POST['mo_openid_enable_customize_text_nonce']);
622
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-customize-text-nonce')) {
623
- wp_die('<strong>ERROR</strong>: Invalid Request.');
624
  }else {
625
  update_option('mo_sharing_icon_custom_size',isset($_POST['mo_sharing_icon_custom_size'])?sanitize_text_field($_POST['mo_sharing_icon_custom_size']):0);
626
  update_option('mo_sharing_icon_space',isset($_POST['mo_sharing_icon_space'])? sanitize_text_field($_POST['mo_sharing_icon_space']):0);
@@ -643,7 +643,7 @@ Thank you.';
643
  case 'mo_openid_enable_share_display':
644
  $nonce=sanitize_text_field($_POST['mo_openid_enable_share_display_nonce']);
645
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-share-display-nonce')) {
646
- wp_die('<strong>ERROR</strong>: Invalid Request.');
647
  }
648
  else{
649
  update_option('mo_share_options_enable_home_page', isset($_POST['mo_share_options_home_page']) ? sanitize_text_field($_POST['mo_share_options_home_page']) : 0);
@@ -669,7 +669,7 @@ Thank you.';
669
  case 'mo_openid_feedback':
670
  $nonce = sanitize_text_field($_POST['mo_openid_feedback_nonce']);
671
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-feedback-nonce' ) ) {
672
- wp_die('<strong>ERROR</strong>: Invalid Request.');
673
  } else {
674
  $message='';
675
  $email = '';
@@ -721,7 +721,7 @@ Thank you.';
721
  case 'mo_openid_share_cnt':
722
  $nonce=sanitize_text_field($_POST['mo_openid_share_cnt_nonce']);
723
  if (!wp_verify_nonce($nonce, 'mo-openid-share-cnt-nonce')) {
724
- wp_die('<strong>ERROR</strong>: Invalid Request.');
725
  }else {
726
  update_option( 'mo_openid_share_count', isset( $_POST['mo_openid_share_count']) ? sanitize_text_field($_POST['mo_openid_share_count']) : 0);
727
  update_option( 'mo_openid_Facebook_share_count_api', isset( $_POST['mo_openid_Facebook_share_count_api']) ? sanitize_text_field($_POST['mo_openid_Facebook_share_count_api']) : '');
@@ -733,7 +733,7 @@ Thank you.';
733
  case 'mo_openid_comment_selectapp':
734
  $nonce = sanitize_text_field($_POST['mo_openid_enable_comment_selectapp_nonce']);
735
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-comment-selectapp-nonce')) {
736
- wp_die('<strong>ERROR</strong>: Invalid Request.');
737
  } else {
738
  update_option('mo_openid_social_comment_fb', isset($_POST['mo_openid_social_comment_fb']) ? sanitize_text_field($_POST['mo_openid_social_comment_fb']) : 0);
739
  update_option('mo_openid_social_comment_disqus', isset($_POST['mo_openid_social_comment_disqus']) ? sanitize_text_field($_POST['mo_openid_social_comment_disqus']) : 0);
@@ -747,7 +747,7 @@ Thank you.';
747
  case 'mo_openid_comment_display':
748
  $nonce = sanitize_text_field($_POST['mo_openid_enable_comment_display_nonce']);
749
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-comment-display-nonce')) {
750
- wp_die('<strong>ERROR</strong>: Invalid Request.');
751
  } else {
752
  update_option('mo_openid_social_comment_blogpost', isset($_POST['mo_openid_social_comment_blogpost']) ? sanitize_text_field($_POST['mo_openid_social_comment_blogpost']) : 0);
753
  update_option('mo_openid_social_comment_static', isset($_POST['mo_openid_social_comment_static']) ? sanitize_text_field($_POST['mo_openid_social_comment_static']) : 0);
@@ -759,7 +759,7 @@ Thank you.';
759
  case 'mo_openid_comment_labels':
760
  $nonce = sanitize_text_field($_POST['mo_openid_enable_comment_labels_nonce']);
761
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-comment-labels-nonce')) {
762
- wp_die('<strong>ERROR</strong>: Invalid Request.');
763
  } else {
764
  update_option('mo_openid_social_comment_default_label',isset($_POST['mo_openid_social_comment_default_label'])? sanitize_text_field($_POST['mo_openid_social_comment_default_label']):0);
765
  update_option('mo_openid_social_comment_fb_label', isset($_POST['mo_openid_social_comment_fb_label'])?sanitize_text_field($_POST['mo_openid_social_comment_fb_label']):0);
4
  * Plugin Name: Social Login, Social Sharing by miniOrange
5
  * Plugin URI: https://www.miniorange.com
6
  * Description: Allow your users to login, comment and share with Facebook, Google, Apple, Twitter, LinkedIn etc using customizable buttons.
7
+ * Version: 7.3.10
8
  * Author: miniOrange
9
  * License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
  */
11
 
12
+ define('MO_OPENID_SOCIAL_LOGIN_VERSION', '7.3.10');
13
  define('plugin_url', plugin_dir_url(__FILE__) . "includes/images/icons/");
14
  define('MOSL_PLUGIN_DIR',str_replace('/','\\',plugin_dir_path(__FILE__)));
15
  require('miniorange_openid_sso_settings_page.php');
341
  case 'mo_openid_customise_social_icons':
342
  $nonce = sanitize_text_field($_POST['mo_openid_customise_social_icons_nonce']);
343
  if (!wp_verify_nonce($nonce, 'mo-openid-customise-social-icons-nonce')) {
344
+ 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.');
345
  }
346
  else{
347
  update_option('mo_openid_login_theme',isset($_POST['mo_openid_login_theme'])? sanitize_text_field($_POST['mo_openid_login_theme']):"");
366
  if (!mo_openid_restrict_user()) {
367
  $nonce = sanitize_text_field($_POST['mo_openid_enable_gdpr_nonce']);
368
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-gdpr-nonce')) {
369
+ 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.');
370
  } else {
371
  // GDPR options
372
  update_option('mo_openid_gdpr_consent_enable', isset($_POST['mo_openid_gdpr_consent_enable']) ? sanitize_text_field($_POST['mo_openid_gdpr_consent_enable']) : 0);
382
  case 'mo_openid_contact_us_query_option':
383
  $nonce = sanitize_text_field($_POST['mo_openid_contact_us_nonce']);
384
  if (!wp_verify_nonce($nonce, 'mo-openid-contact-us-nonce')) {
385
+ 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.');
386
  } else {
387
 
388
  // Contact Us query
410
  case 'mo_openid_rateus_query_option':
411
  $nonce = sanitize_text_field($_POST['mo_openid_rateus_nonce']);
412
  if (!wp_verify_nonce($nonce, 'mo-openid-rateus-nonce')) {
413
+ 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.');
414
  } else {
415
 
416
  // Rate Us query
436
  case 'cronmo_openid_rateus_query_option':
437
  $nonce = sanitize_text_field($_POST['cronmo_openid_rateus_nonce']);
438
  if (!wp_verify_nonce($nonce, 'cronmo-openid-rateus-nonce')) {
439
+ 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.');
440
  } else {
441
 
442
  // Rate Us query
465
  case 'mo_openid_enable_redirect':
466
  $nonce=sanitize_text_field($_POST['mo_openid_enable_redirect_nonce']);
467
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-redirect-nonce')) {
468
+ 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.');
469
  }else {
470
  //Redirect URL
471
  update_option('mo_openid_login_redirect', isset($_POST['mo_openid_login_redirect'])?sanitize_text_field($_POST['mo_openid_login_redirect']):"");
484
  case 'mo_openid_enable_registration':
485
  $nonce=sanitize_text_field($_POST['mo_openid_enable_registration_nonce']);
486
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-registration-nonce')) {
487
+ 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.');
488
  }else {
489
  update_option('mo_openid_auto_register_enable', isset($_POST['mo_openid_auto_register_enable']) ? sanitize_text_field($_POST['mo_openid_auto_register_enable']) : 0);
490
  update_option('mo_openid_register_disabled_message',isset($_POST['mo_openid_register_disabled_message'])? sanitize_text_field($_POST['mo_openid_register_disabled_message']):"");
499
  case 'mo_openid_enable_display':
500
  $nonce=sanitize_text_field($_POST['mo_openid_enable_display_nonce']);
501
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-display-nonce')) {
502
+ 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.');
503
  }else {
504
  update_option('mo_openid_default_login_enable', isset($_POST['mo_openid_default_login_enable']) ? sanitize_text_field($_POST['mo_openid_default_login_enable']) : 0);
505
  update_option('mo_openid_default_register_enable', isset($_POST['mo_openid_default_register_enable']) ? sanitize_text_field($_POST['mo_openid_default_register_enable']) : 0);
515
  case 'mo_openid_verify_license':
516
  $nonce = sanitize_text_field($_POST['mo_openid_verify_license_nonce']);
517
  if (!wp_verify_nonce($nonce, 'mo-openid-verify-license-nonce')) {
518
+ 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.');
519
  }
520
  else {
521
  $code = trim($_POST['openid_licence_key']);
566
  if (!mo_openid_restrict_user()) {
567
  $nonce = sanitize_text_field($_POST['mo_openid_enable_account_linking_nonce']);
568
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-account-linking-nonce')) {
569
+ 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.');
570
  } else {
571
  update_option('mo_openid_account_linking_enable', isset($_POST['mo_openid_account_linking_enable']) ? sanitize_text_field($_POST['mo_openid_account_linking_enable']) : 0);
572
  update_option('mo_account_linking_title', isset($_POST['mo_account_linking_title']) ? sanitize_text_field($_POST['mo_account_linking_title']) : "");
586
  case 'mo_openid_profile_completion':
587
  $nonce = sanitize_text_field($_POST['mo_openid_enable_profile_completion_nonce']);
588
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-premium-feature-nonce')) {
589
+ 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.');
590
  } else {
591
  if(strpos($_POST['custom_otp_msg'], '##otp##' ) !== false) {
592
  //$_POST['custom_otp_msg'] = stripslashes($_POST['custom_otp_msg']);
620
  case 'mo_openid_enable_customize_text':
621
  $nonce=sanitize_text_field($_POST['mo_openid_enable_customize_text_nonce']);
622
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-customize-text-nonce')) {
623
+ 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.');
624
  }else {
625
  update_option('mo_sharing_icon_custom_size',isset($_POST['mo_sharing_icon_custom_size'])?sanitize_text_field($_POST['mo_sharing_icon_custom_size']):0);
626
  update_option('mo_sharing_icon_space',isset($_POST['mo_sharing_icon_space'])? sanitize_text_field($_POST['mo_sharing_icon_space']):0);
643
  case 'mo_openid_enable_share_display':
644
  $nonce=sanitize_text_field($_POST['mo_openid_enable_share_display_nonce']);
645
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-share-display-nonce')) {
646
+ 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.');
647
  }
648
  else{
649
  update_option('mo_share_options_enable_home_page', isset($_POST['mo_share_options_home_page']) ? sanitize_text_field($_POST['mo_share_options_home_page']) : 0);
669
  case 'mo_openid_feedback':
670
  $nonce = sanitize_text_field($_POST['mo_openid_feedback_nonce']);
671
  if ( ! wp_verify_nonce( $nonce, 'mo-openid-feedback-nonce' ) ) {
672
+ 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.');
673
  } else {
674
  $message='';
675
  $email = '';
721
  case 'mo_openid_share_cnt':
722
  $nonce=sanitize_text_field($_POST['mo_openid_share_cnt_nonce']);
723
  if (!wp_verify_nonce($nonce, 'mo-openid-share-cnt-nonce')) {
724
+ 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.');
725
  }else {
726
  update_option( 'mo_openid_share_count', isset( $_POST['mo_openid_share_count']) ? sanitize_text_field($_POST['mo_openid_share_count']) : 0);
727
  update_option( 'mo_openid_Facebook_share_count_api', isset( $_POST['mo_openid_Facebook_share_count_api']) ? sanitize_text_field($_POST['mo_openid_Facebook_share_count_api']) : '');
733
  case 'mo_openid_comment_selectapp':
734
  $nonce = sanitize_text_field($_POST['mo_openid_enable_comment_selectapp_nonce']);
735
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-comment-selectapp-nonce')) {
736
+ 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.');
737
  } else {
738
  update_option('mo_openid_social_comment_fb', isset($_POST['mo_openid_social_comment_fb']) ? sanitize_text_field($_POST['mo_openid_social_comment_fb']) : 0);
739
  update_option('mo_openid_social_comment_disqus', isset($_POST['mo_openid_social_comment_disqus']) ? sanitize_text_field($_POST['mo_openid_social_comment_disqus']) : 0);
747
  case 'mo_openid_comment_display':
748
  $nonce = sanitize_text_field($_POST['mo_openid_enable_comment_display_nonce']);
749
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-comment-display-nonce')) {
750
+ 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.');
751
  } else {
752
  update_option('mo_openid_social_comment_blogpost', isset($_POST['mo_openid_social_comment_blogpost']) ? sanitize_text_field($_POST['mo_openid_social_comment_blogpost']) : 0);
753
  update_option('mo_openid_social_comment_static', isset($_POST['mo_openid_social_comment_static']) ? sanitize_text_field($_POST['mo_openid_social_comment_static']) : 0);
759
  case 'mo_openid_comment_labels':
760
  $nonce = sanitize_text_field($_POST['mo_openid_enable_comment_labels_nonce']);
761
  if (!wp_verify_nonce($nonce, 'mo-openid-enable-comment-labels-nonce')) {
762
+ 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.');
763
  } else {
764
  update_option('mo_openid_social_comment_default_label',isset($_POST['mo_openid_social_comment_default_label'])? sanitize_text_field($_POST['mo_openid_social_comment_default_label']):0);
765
  update_option('mo_openid_social_comment_fb_label', isset($_POST['mo_openid_social_comment_fb_label'])?sanitize_text_field($_POST['mo_openid_social_comment_fb_label']):0);
mo-openid-social-login-functions.php CHANGED
@@ -1227,7 +1227,7 @@ function mo_pop_show_verify_password_page() {
1227
  function mo_openid_share_action(){
1228
  $nonce = sanitize_text_field($_POST['mo_openid_share_nonce']);
1229
  if (!wp_verify_nonce($nonce, 'mo-openid-share')) {
1230
- wp_die('<strong>ERROR</strong>: Invalid Request.');
1231
  } else {
1232
 
1233
  $enable_id = sanitize_text_field($_POST['enabled']);
1227
  function mo_openid_share_action(){
1228
  $nonce = sanitize_text_field($_POST['mo_openid_share_nonce']);
1229
  if (!wp_verify_nonce($nonce, 'mo-openid-share')) {
1230
+ 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.');
1231
  } else {
1232
 
1233
  $enable_id = sanitize_text_field($_POST['enabled']);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.miniorange.com
4
  Tags: social login, facebook login, google login, twitter login, Vkontakte login, Woocommerce, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
5
  Requires at least: 2.0.2
6
  Tested up to: 5.4
7
- Stable tag: 7.3.9
8
  License: GPLv2 or later
9
  License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
 
@@ -184,6 +184,10 @@ Please email us at info@miniorange.com. You can also submit your query from the
184
  12. Social Sharing icons without background.
185
 
186
  ==Changelog==
 
 
 
 
187
  = 7.3.9 =
188
  * Added the two display options for WooCommerce.
189
  * Added bulk instances for Social Login plans.
@@ -734,6 +738,10 @@ SECURITY FIXES
734
  * First version of Social Login, Social Sharing plugin.
735
 
736
  == Upgrade Notice ==
 
 
 
 
737
  = 7.3.9 =
738
  * Added the two display options for WooCommerce.
739
  * Added bulk instances for Social Login plans.
4
  Tags: social login, facebook login, google login, twitter login, Vkontakte login, Woocommerce, social, facebook, twitter, google, login, google, social connect, social network login, social plugin, Vkontakte, LinkedIn
5
  Requires at least: 2.0.2
6
  Tested up to: 5.4
7
+ Stable tag: 7.3.10
8
  License: GPLv2 or later
9
  License URI: http://miniorange.com/usecases/miniOrange_User_Agreement.pdf
10
 
184
  12. Social Sharing icons without background.
185
 
186
  ==Changelog==
187
+ = 7.3.10 =
188
+ * Facebook API updated.
189
+ * Minor UI Changes.
190
+
191
  = 7.3.9 =
192
  * Added the two display options for WooCommerce.
193
  * Added bulk instances for Social Login plans.
738
  * First version of Social Login, Social Sharing plugin.
739
 
740
  == Upgrade Notice ==
741
+ = 7.3.10 =
742
+ * Facebook API updated.
743
+ * Minor UI Changes.
744
+
745
  = 7.3.9 =
746
  * Added the two display options for WooCommerce.
747
  * Added bulk instances for Social Login plans.
social_apps/facebook.php CHANGED
@@ -19,7 +19,7 @@ class mo_facebook
19
  $_SESSION["appname"] = 'facebook';
20
  $client_id = $appslist['facebook']['clientid'];
21
  $scope = $appslist['facebook']['scope'];
22
- $login_dialog_url = "https://www.facebook.com/v2.11/dialog/oauth?client_id=".$client_id. '&redirect_uri='. $social_app_redirect_uri .'&response_type=code&scope='.$scope;
23
  header('Location:'. $login_dialog_url);
24
  exit;
25
  }
@@ -32,13 +32,13 @@ class mo_facebook
32
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
33
  $client_id = $appslist['facebook']['clientid'];
34
  $client_secret = $appslist['facebook']['clientsecret'];
35
- $access_token_uri = 'https://graph.facebook.com/v2.11/oauth/access_token';
36
  $postData = 'client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&client_secret=' . $client_secret . '&code=' . $code;
37
  $access_token_json_output=mo_openid_get_access_token($postData,$access_token_uri,'facebook');
38
  $access_token = isset( $access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
39
  mo_openid_start_session();
40
  $px = get_option('facebook_profile_pic_resolution')?get_option('facebook_profile_pic_resolution'):'180';
41
- $profile_url ='https://graph.facebook.com/me/?fields=age_range,birthday,about,cover,currency,devices,education,email,favorite_athletes,favorite_teams,first_name,gender,hometown,inspirational_people,interested_in,is_verified,languages,last_name,link,locale,location,meeting_for,middle_name,name,name_format,political,public_key,quotes,relationship_status,religion,sports,timezone,updated_time,verified,website,work,friends,picture.height('.$px.')&access_token=' .$access_token;
42
  $profile_json_output = mo_openid_get_social_app_data($access_token,$profile_url,'facebook');
43
 
44
  //Test Configuration
19
  $_SESSION["appname"] = 'facebook';
20
  $client_id = $appslist['facebook']['clientid'];
21
  $scope = $appslist['facebook']['scope'];
22
+ $login_dialog_url = "https://www.facebook.com/v3.2/dialog/oauth?client_id=".$client_id. '&state=1328974&response_type=code&sdk=php-sdk-5.7.0&redirect_uri='. $social_app_redirect_uri .'&scope=email';
23
  header('Location:'. $login_dialog_url);
24
  exit;
25
  }
32
  $appslist = maybe_unserialize(get_option('mo_openid_apps_list'));
33
  $client_id = $appslist['facebook']['clientid'];
34
  $client_secret = $appslist['facebook']['clientsecret'];
35
+ $access_token_uri = 'https://graph.facebook.com/v3.2/oauth/access_token';
36
  $postData = 'client_id=' . $client_id . '&redirect_uri=' . $social_app_redirect_uri . '&client_secret=' . $client_secret . '&code=' . $code;
37
  $access_token_json_output=mo_openid_get_access_token($postData,$access_token_uri,'facebook');
38
  $access_token = isset( $access_token_json_output['access_token']) ? $access_token_json_output['access_token'] : '';
39
  mo_openid_start_session();
40
  $px = get_option('facebook_profile_pic_resolution')?get_option('facebook_profile_pic_resolution'):'180';
41
+ $profile_url ='https://graph.facebook.com/me?fields=id,name,about,link,email,first_name,last_name&access_token=' .$access_token;
42
  $profile_json_output = mo_openid_get_social_app_data($access_token,$profile_url,'facebook');
43
 
44
  //Test Configuration
view/config_apps/mo_openid_config_apps_funct.php CHANGED
@@ -3,7 +3,7 @@
3
  function mo_openid_sso_sort_action(){
4
  $nonce = sanitize_text_field($_POST['mo_openid_sso_sort_nonce']);
5
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-sort')) {
6
- wp_die('<strong>ERROR</strong>: Invalid Request.');
7
  } else {
8
  $app_sequence=array_map( 'sanitize_text_field', $_POST['sequence']);
9
  $app_pos='';
@@ -26,7 +26,7 @@ function mo_openid_sso_enable_app()
26
  {
27
  $nonce = sanitize_text_field($_POST['mo_openid_sso_enable_app_nonce']);
28
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-enable-app')) {
29
- wp_die('<strong>ERROR</strong>: Invalid Request.');
30
  } else {
31
  $enable_app = sanitize_text_field($_POST['enabled']);
32
  if ($enable_app == "true") {
@@ -42,7 +42,7 @@ function mo_openid_app_instructions_action()
42
  {
43
  $nonce = sanitize_text_field($_POST['mo_openid_app_instructions_nonce']);
44
  if (!wp_verify_nonce($nonce, 'mo-openid-app-instructions')) {
45
- wp_die('<strong>ERROR</strong>: Invalid Request.');
46
  } else {
47
  $social_app = sanitize_text_field($_POST['app_name']);
48
  $instructions = plugin_url . $social_app . ".png##";
@@ -90,7 +90,7 @@ function mo_openid_capp_details_action()
90
  {
91
  $nonce = sanitize_text_field($_POST['mo_openid_capp_details_nonce']);
92
  if (!wp_verify_nonce($nonce, 'mo-openid-capp-details')) {
93
- wp_die('<strong>ERROR</strong>: Invalid Request.');
94
  } else {
95
  $clientid = stripslashes(sanitize_text_field($_POST['app_id']));
96
  $clientsecret = stripslashes(sanitize_text_field($_POST['app_secret']));
3
  function mo_openid_sso_sort_action(){
4
  $nonce = sanitize_text_field($_POST['mo_openid_sso_sort_nonce']);
5
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-sort')) {
6
+ 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.');
7
  } else {
8
  $app_sequence=array_map( 'sanitize_text_field', $_POST['sequence']);
9
  $app_pos='';
26
  {
27
  $nonce = sanitize_text_field($_POST['mo_openid_sso_enable_app_nonce']);
28
  if (!wp_verify_nonce($nonce, 'mo-openid-sso-enable-app')) {
29
+ 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.');
30
  } else {
31
  $enable_app = sanitize_text_field($_POST['enabled']);
32
  if ($enable_app == "true") {
42
  {
43
  $nonce = sanitize_text_field($_POST['mo_openid_app_instructions_nonce']);
44
  if (!wp_verify_nonce($nonce, 'mo-openid-app-instructions')) {
45
+ 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.');
46
  } else {
47
  $social_app = sanitize_text_field($_POST['app_name']);
48
  $instructions = plugin_url . $social_app . ".png##";
90
  {
91
  $nonce = sanitize_text_field($_POST['mo_openid_capp_details_nonce']);
92
  if (!wp_verify_nonce($nonce, 'mo-openid-capp-details')) {
93
+ 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.');
94
  } else {
95
  $clientid = stripslashes(sanitize_text_field($_POST['app_id']));
96
  $clientsecret = stripslashes(sanitize_text_field($_POST['app_secret']));
view/link_social_account/mo_openid_link_soc_acc_funct.php CHANGED
@@ -74,7 +74,7 @@ function mo_openid_social_linking_action(){
74
  if(!mo_openid_restrict_user()) {
75
  $nonce = sanitize_text_field($_POST['mo_openid_social_linking_nonce']);
76
  if (!wp_verify_nonce($nonce, 'mo-openid-social-linking')) {
77
- wp_die('<strong>ERROR</strong>: Invalid Request.');
78
  } else {
79
 
80
  if (sanitize_text_field($_POST['enabled']) == "true") {
74
  if(!mo_openid_restrict_user()) {
75
  $nonce = sanitize_text_field($_POST['mo_openid_social_linking_nonce']);
76
  if (!wp_verify_nonce($nonce, 'mo-openid-social-linking')) {
77
+ 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.');
78
  } else {
79
 
80
  if (sanitize_text_field($_POST['enabled']) == "true") {
view/profile_completion/mo_openid_prof_comp.php CHANGED
@@ -12,6 +12,11 @@ function mo_openid_profile_completion(){
12
  <input type="checkbox" id="profile_completion_enable" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?> />
13
  <span class="mo_openid_checkbox_checkmark"></span>
14
  </label>
 
 
 
 
 
15
  <p class=" mo_openid_note_style" style="color:#000000;">
16
  <b><?php echo mo_sl('*NOTE:');?></b> <?php echo mo_sl("Disabling profile completion is not recommended. Instagram and Twitter don't return email address. Please keep this enabled if you are using Instagram or Twitter. This feature requires SMTP to be setup for your WordPress website since we send a code to users over email to verify their email address.");?>
17
  </p>
12
  <input type="checkbox" id="profile_completion_enable" name="mo_openid_enable_profile_completion" value="1" <?php checked( get_option('mo_openid_enable_profile_completion') == '1' );?> />
13
  <span class="mo_openid_checkbox_checkmark"></span>
14
  </label>
15
+ <label class="mo_openid_checkbox_container">
16
+ <input type="checkbox" id="mo_openid_enable_profile_completion1">Prompt user for username and email without email verification. (profile completion).<a style="left: 1%; position: static; text-decoration: none" class="mo-openid-premium" href="<?php echo add_query_arg( array('tab' => 'licensing_plans'), $_SERVER['REQUEST_URI'] ); ?>">PRO</a>
17
+ <br>For getting profile completion without Otp verification through your email,you need to enable the both the checkboxes.</br>
18
+ <span class="mo_openid_checkbox_checkmark_disable"></span>
19
+ </label>
20
  <p class=" mo_openid_note_style" style="color:#000000;">
21
  <b><?php echo mo_sl('*NOTE:');?></b> <?php echo mo_sl("Disabling profile completion is not recommended. Instagram and Twitter don't return email address. Please keep this enabled if you are using Instagram or Twitter. This feature requires SMTP to be setup for your WordPress website since we send a code to users over email to verify their email address.");?>
22
  </p>
view/profile_completion/mo_openid_prof_comp_funct.php CHANGED
@@ -249,7 +249,7 @@ function mo_openid_profile_comp_action(){
249
 
250
  $nonce = sanitize_text_field($_POST['mo_openid_profile_comp_nonce']);
251
  if (!wp_verify_nonce($nonce, 'mo-openid-profile-comp')) {
252
- wp_die('<strong>ERROR</strong>: Invalid Request.');
253
  } else {
254
 
255
  if(sanitize_text_field($_POST['enabled'])=="true") {
249
 
250
  $nonce = sanitize_text_field($_POST['mo_openid_profile_comp_nonce']);
251
  if (!wp_verify_nonce($nonce, 'mo-openid-profile-comp')) {
252
+ 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.');
253
  } else {
254
 
255
  if(sanitize_text_field($_POST['enabled'])=="true") {