Changeset 3374814
- Timestamp:
- 10/08/2025 06:20:53 AM (6 months ago)
- Location:
- otp-easy-login-with-mocean/tags/1.2.0
- Files:
-
- 5 edited
- 1 copied
-
. (copied) (copied from otp-easy-login-with-mocean/trunk)
-
admin/includes/options/services-options.php (modified) (2 diffs)
-
admin/templates/oelm-balance-info.php (modified) (1 diff)
-
includes/oelm-functions.php (modified) (1 diff)
-
includes/servicesScripts/class-oelm-mocean.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
otp-easy-login-with-mocean/tags/1.2.0/admin/includes/options/services-options.php
r2326240 r3374814 21 21 'section' => 'twilio-section', 22 22 'option_name' => $option_name, 23 'id' => 'mocean-api-token', 24 'title' => 'API token', 25 'desc' => 'API token is prioritized over API key and secret', 26 ), 27 28 array( 29 'type' => 'setting', 30 'callback' => 'text', 31 'section' => 'twilio-section', 32 'option_name' => $option_name, 23 33 'id' => 'mocean-account-sid', 24 34 'title' => 'API key', 35 'desc' => 'API key can be left empty if an API token is used', 25 36 ), 26 37 … … 33 44 'id' => 'mocean-auth-token', 34 45 'title' => 'API Secret', 46 'desc' => 'API secret can be left empty if an API token is used', 35 47 ), 36 48 -
otp-easy-login-with-mocean/tags/1.2.0/admin/templates/oelm-balance-info.php
r2326240 r3374814 11 11 $account_sid = $settings['mocean-account-sid']; 12 12 $auth_token = $settings['mocean-auth-token']; 13 $api_token = $settings['mocean-api-token']; 13 14 14 15 15 16 16 17 $mocean = new \Mocean\Client( 17 new \Mocean\Client\Credentials\Basic( $account_sid, $auth_token)18 new \Mocean\Client\Credentials\Basic(["apiKey" => $account_sid, "apiSecret" => $auth_token, "apiToken" => $api_token]) 18 19 ); 19 20 20 if ($a ccount_sid == "" || $auth_token == ""){21 if ($api_token == "" && ($account_sid == "" || $auth_token == "")){ 21 22 $result = "<span style='font-size:1rem;'>API Security Details missing! please enter your Mocean api security details in the services tab</span>"; 22 23 }else{ -
otp-easy-login-with-mocean/tags/1.2.0/includes/oelm-functions.php
r2911450 r3374814 239 239 $operators = array( 240 240 'mocean' => array( 241 'download' => 'https:// dl.dropboxusercontent.com/s/aw67ni7pwrciw9y/mocean.zip?dl=0',242 'doc' => 'https:// dl.dropboxusercontent.com/s/8lvgbtbcru7uf9a/otp%20easy%20login%20woocommerce%20step%20by%20step%20tutorial.docx?dl=0', // Remember to change this241 'download' => 'https://www.dropbox.com/scl/fi/1woldgulq9z3cwbjxpura/mocean.zip?rlkey=cii2knt4amzl54a6tp06wud55&st=bmlyxl90&dl=1', 242 'doc' => 'https://www.dropbox.com/scl/fi/sa5etg89d2t55pm8392jr/otp-easy-login-woocommerce-step-by-step-tutorial.docx?rlkey=zx96vdgiuud9z9nxeebuxu7aw&st=m4zx8tu0&dl=1', // Remember to change this 243 243 'loader' => $operator_dir.'/mocean/vendor/autoload.php', 244 244 'myscript' => oelm_PATH.'/includes/servicesScripts/class-oelm-mocean.php' -
otp-easy-login-with-mocean/tags/1.2.0/includes/servicesScripts/class-oelm-mocean.php
r2326240 r3374814 27 27 $this->account_sid = self::$settings['mocean-account-sid']; 28 28 $this->auth_token = self::$settings['mocean-auth-token']; 29 $this->api_token = self::$settings['mocean-api-token']; 29 30 $this->senders_number = self::$settings['mocean-sender-number']; 30 31 } … … 32 33 public function sendSMS( $phone, $message ){ 33 34 34 $mocean = new Client(new Basic( 35 $this->account_sid, 36 $this->auth_token 37 )); 35 $mocean = new Client(new Basic(["apiKey" => $this->account_sid, "apiSecret" => $this->auth_token, "apiToken" => $this->api_token])); 38 36 39 37 -
otp-easy-login-with-mocean/tags/1.2.0/readme.txt
r3004008 r3374814 5 5 Requires at least: 3.0.1 6 6 Tested up to: 6.3 7 Stable tag: 1. 1.27 Stable tag: 1.2.0 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.