From b83ae29d66683f348c40041243045f6919dec3be Mon Sep 17 00:00:00 2001 From: CIEF Dev Team Date: Wed, 7 Mar 2018 07:56:23 +0000 Subject: [PATCH] remove nexmo/client --- includes/core.php | 2 +- includes/func.class/login.func.php | 8 +------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/includes/core.php b/includes/core.php index 4ee22c1..8a99c9c 100755 --- a/includes/core.php +++ b/includes/core.php @@ -37,7 +37,7 @@ if ($_SERVER["REQUEST_URI"] != "/register" && $_SERVER["REQUEST_URI"] != "/regis require_once 'vendor/autoload.php'; $app = new Silex\Application(); // <-- Declare $app as Silex $app->register(new Silex\Provider\SwiftmailerServiceProvider()); // Register Swiftmailer - $nexmo = new Nexmo\Client(new Nexmo\Client\Credentials\Basic("3c2aaf82", "4bc9f145f63e7cca")); + // $nexmo = new Nexmo\Client(new Nexmo\Client\Credentials\Basic("3c2aaf82", "4bc9f145f63e7cca")); $menu_array = array(); diff --git a/includes/func.class/login.func.php b/includes/func.class/login.func.php index 0e7458b..2e3d3ce 100755 --- a/includes/func.class/login.func.php +++ b/includes/func.class/login.func.php @@ -7,7 +7,6 @@ */ global $app; -// global $nexmo; global $csrf; global $twilio; @@ -134,7 +133,7 @@ $app->post('/register/check-verification', function(Request $request) { }); $app->post('/register/send-verification', function(Request $request) { global $db; - // global $nexmo; + global $twilio; $username = $request->get('username'); $verification_code = mt_rand(100000,999999); @@ -144,11 +143,6 @@ $app->post('/register/send-verification', function(Request $request) { $userReg = $db->query("INSERT INTO mobile_verifications(mobile,verification_code) VALUES(:mobile,:verification_code)"); if ($userReg) { - // $message = $nexmo->message()->send([ - // 'to' => $username, - // 'from' => 'IZYIM', - // 'text' => 'Your 6 digit verification number is : ' .$verification_code . ' ' - // ]); $twilio->messages->create( $username, array(