Plugin Directory

Changeset 2855635


Ignore:
Timestamp:
01/27/2023 06:37:25 AM (3 years ago)
Author:
intergotelecom
Message:

fix estimate for 2FA

Location:
wp-sms-otp-login
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • wp-sms-otp-login/trunk/includes/admin/login_register_action/class-wpsmstootp-login_register_action.php

    r2559092 r2855635  
    9292        return sprintf( '%1$s <span style="color:silver">(id:%2$s)</span>%3$s',
    9393            /*$1%s*/
    94             isset($item['user_id'])? get_user_by('ID', $item['user_id'])->user_login : $item['user_id'],
     94                        isset($item['user_id']) && $item['user_id']!= 0 ? get_user_by('ID', $item['user_id'])->user_login : substr($item['email'], 0, strrpos($item['email'], '@')),
    9595            /*$2%s*/
    9696            $item['ID'],
  • wp-sms-otp-login/trunk/includes/functions.php

    r2810655 r2855635  
    10861086 * @author Christodoulou Panikos
    10871087 * @email christodoulou.panicos@cytanet.com.cy
    1088  * @param mobile_phone, text=4digits, api_key
     1088 * @param mobile_phone, text=using sample text, api_key
    10891089 * @return cost
    10901090 */
    10911091function wsol_sms_to_estimateSingleMessage($mobile_phone, $text, $api_key) {
    1092 
    10931092
    10941093    $bodyContent = array(
    10951094        'sender_id' => 'SENDER',
    10961095        'to' => $mobile_phone,
    1097         'message' => $text,
     1096        'message' => strval($text). ' is your one time password to xxxxxxxxxxxxxxxxxxxxxxx'
    10981097    );
    10991098
     
    11011100        $body = json_encode($bodyContent);
    11021101    }
    1103 
    11041102
    11051103    $url = \WSOL_WP_SMS_TO_OTP\Gateway\wpsmstootp::getWsdl_link() . '/sms/estimate';
     
    11201118    );
    11211119
    1122 
    11231120    $response = wp_remote_post($url, $args);
    11241121
    1125 
    1126 
    11271122    if (!is_wp_error($response) && 200 == wp_remote_retrieve_response_code($response)) {
    1128 
    11291123        $body = json_decode(wp_remote_retrieve_body($response));
    11301124        return ($body->estimated_cost);
  • wp-sms-otp-login/trunk/readme.txt

    r2810655 r2855635  
    66Tags: sms, wordpress, send, subscribe, message, register, notification, sms.to, subscribes-sms
    77Requires at least: 3.0
    8 Tested up to: 6.1
    9 Stable tag: 1.1.3
     8Tested up to: 6.1.1
     9Stable tag: 1.1.4
    1010Requires PHP: 5.6
    1111WC requires at least: 3.0
    12 WC tested up to: 7.0.1
     12WC tested up to: 7.3.0
    1313
    1414
     
    8080
    8181== Changelog ==
     82= 1.1.4 =
     83* Fix Estimation
     84* Show User for Register OTP Action
     85* Compatibility with WordPress 6.1.1
     86* Compatibility with WooCommerce 7.3.0
    8287= 1.1.3 =
    8388* Customized text for OTP message content
  • wp-sms-otp-login/trunk/wp-sms-to-otp.php

    r2810655 r2855635  
    44 * Plugin URI: https://wordpress.org/plugins/wp-sms-otp-login/
    55 * Description: A powerful SMS Messaging/Texting one-time-password login plugin for WordPress - This plugin is a fork from https://wordpress.org/plugins/wp-sms/ by VeronaLabs
    6  * Version: 1.1.3
     6 * Version: 1.1.4
    77 * Author: SMS.to
    88 * Author URI: https://sms.to
Note: See TracChangeset for help on using the changeset viewer.