Changeset 3432651
- Timestamp:
- 01/05/2026 10:51:21 AM (3 months ago)
- Location:
- alpha-sms
- Files:
-
- 40 added
- 5 edited
-
tags/1.0.16 (added)
-
tags/1.0.16/LICENSE.txt (added)
-
tags/1.0.16/README.txt (added)
-
tags/1.0.16/admin (added)
-
tags/1.0.16/admin/class-alpha_sms-admin.php (added)
-
tags/1.0.16/admin/css (added)
-
tags/1.0.16/admin/css/alpha_sms-admin.css (added)
-
tags/1.0.16/admin/index.php (added)
-
tags/1.0.16/admin/js (added)
-
tags/1.0.16/admin/js/alpha_sms-admin.js (added)
-
tags/1.0.16/admin/partials (added)
-
tags/1.0.16/admin/partials/alpha_sms-admin-display_campaign.php (added)
-
tags/1.0.16/admin/partials/alpha_sms-admin-display_settings.php (added)
-
tags/1.0.16/alpha_sms.php (added)
-
tags/1.0.16/includes (added)
-
tags/1.0.16/includes/class-alpha_sms-activator.php (added)
-
tags/1.0.16/includes/class-alpha_sms-background.php (added)
-
tags/1.0.16/includes/class-alpha_sms-deactivator.php (added)
-
tags/1.0.16/includes/class-alpha_sms-i18n.php (added)
-
tags/1.0.16/includes/class-alpha_sms-loader.php (added)
-
tags/1.0.16/includes/class-alpha_sms.php (added)
-
tags/1.0.16/includes/index.php (added)
-
tags/1.0.16/includes/sms.class.php (added)
-
tags/1.0.16/index.php (added)
-
tags/1.0.16/languages (added)
-
tags/1.0.16/languages/alpha_sms.pot (added)
-
tags/1.0.16/public (added)
-
tags/1.0.16/public/class-alpha_sms-public.php (added)
-
tags/1.0.16/public/css (added)
-
tags/1.0.16/public/css/alpha_sms-public.css (added)
-
tags/1.0.16/public/css/otp-login-form.css (added)
-
tags/1.0.16/public/index.php (added)
-
tags/1.0.16/public/js (added)
-
tags/1.0.16/public/js/alpha_sms-public.js (added)
-
tags/1.0.16/public/js/otp-login-form.js (added)
-
tags/1.0.16/public/partials (added)
-
tags/1.0.16/public/partials/add-otp-checkout-form.php (added)
-
tags/1.0.16/public/partials/add-otp-on-login-form.php (added)
-
tags/1.0.16/public/partials/add-otp-on-wc-reg-form.php (added)
-
tags/1.0.16/uninstall.php (added)
-
trunk/README.txt (modified) (1 diff)
-
trunk/alpha_sms.php (modified) (2 diffs)
-
trunk/includes/class-alpha_sms.php (modified) (1 diff)
-
trunk/public/class-alpha_sms-public.php (modified) (2 diffs)
-
trunk/public/js/alpha_sms-public.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
alpha-sms/trunk/README.txt
r3424529 r3432651 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.6 7 Stable tag: 1.0.1 57 Stable tag: 1.0.16 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
alpha-sms/trunk/alpha_sms.php
r3424529 r3432651 17 17 * Plugin URI: https://sms.net.bd/plugins/wordpress 18 18 * Description: WP 2FA Login. SMS OTP Verification for Registration and Login forms, WooCommerce SMS Notification for your shop orders. 19 * Version: 1.0.1 519 * Version: 1.0.16 20 20 * Author: Alpha Net 21 21 * Author URI: https://sms.net.bd/ … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('ALPHA_SMS_VERSION', '1.0.1 5');38 define('ALPHA_SMS_VERSION', '1.0.16'); 39 39 40 40 // plugin constants -
alpha-sms/trunk/includes/class-alpha_sms.php
r3424529 r3432651 77 77 $this->version = ALPHA_SMS_VERSION; 78 78 } else { 79 $this->version = '1.0.1 5';79 $this->version = '1.0.16'; 80 80 } 81 81 $this->plugin_name = 'alpha_sms'; -
alpha-sms/trunk/public/class-alpha_sms-public.php
r3427389 r3432651 143 143 [ 144 144 'ajaxurl' => admin_url('admin-ajax.php'), 145 $this->plugin_name . '_checkout_nonce' => wp_create_nonce(' woocommerce-process-checkout-nonce'),145 $this->plugin_name . '_checkout_nonce' => wp_create_nonce('alpha_sms_checkout_otp'), 146 146 'checkout_otp' => ! empty($this->options['otp_checkout']) ? 'yes' : 'no', 147 147 ] … … 256 256 // Guest checkout / other actions that rely on WooCommerce checkout nonce 257 257 if ($action_type === 'wc_checkout') { 258 $wc_checkout_nonce = isset($_POST['woocommerce-process-checkout-nonce']) ? sanitize_text_field(wp_unslash($_POST['woocommerce-process-checkout-nonce'])) : ''; 259 if (empty($wc_checkout_nonce) || ! wp_verify_nonce($wc_checkout_nonce, 'woocommerce-process-checkout-nonce')) { 260 $response = [ 261 'status' => 403, 262 'message' => __('Security Check failed. Please reload the page and try again.', 'alpha-sms'), 263 ]; 264 echo wp_kses_post(json_encode($response)); 265 wp_die(); 266 exit; 267 } 258 check_ajax_referer('alpha_sms_checkout_otp', 'alpha_sms_checkout_nonce'); 259 268 260 $nonce_ok = true; 269 261 } -
alpha-sms/trunk/public/js/alpha_sms-public.js
r3424529 r3432651 33 33 34 34 35 initializeCheckoutSubmitProxy(); 35 if(alpha_sms_object.checkout_otp == 'yes'){ 36 initializeCheckoutSubmitProxy(); 37 } 36 38 $(document.body).on('updated_checkout', initializeCheckoutSubmitProxy); 37 39 }); … … 102 104 .fail(() => 103 105 alert_wrapper.html( 104 showError(' Something went wrong. Please try again later')106 showError('OTP verification request failed. Please try again later') 105 107 ) 106 108 ) … … 212 214 billing_phone: phone, 213 215 action_type: checkout_form.find('#action_type').val(), 216 alpha_sms_checkout_nonce: alpha_sms_object.alpha_sms_checkout_nonce 214 217 }; 215 // include checkout nonce if present 216 const checkoutNonceField = checkout_form.find('input[name="woocommerce-process-checkout-nonce"]'); 217 if (checkoutNonceField && checkoutNonceField.length) { 218 data['woocommerce-process-checkout-nonce'] = checkoutNonceField.val(); 219 } 218 220 219 221 220 $.post(
Note: See TracChangeset
for help on using the changeset viewer.