mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/ARCHIVED-IZYIM.git
synced 2026-09-02 03:04:04 +00:00
remove nexmo/client
This commit is contained in:
@@ -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