mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/ARCHIVED-IZYIM.git
synced 2026-08-19 04:14:01 +00:00
remove nexmo/client
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user