remove nexmo/client

This commit is contained in:
CIEF Dev Team
2018-03-07 07:56:23 +00:00
parent 4f3377ef02
commit b83ae29d66
2 changed files with 2 additions and 8 deletions
+1 -7
View File
@@ -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(