new(security.gblib): SMS Auth.
This commit is contained in:
parent
27cdb25322
commit
6112ce9a1c
4 changed files with 853 additions and 832 deletions
|
@ -135,7 +135,6 @@
|
||||||
"ffmpeg-static": "5.1.0",
|
"ffmpeg-static": "5.1.0",
|
||||||
"google-libphonenumber": "3.2.31",
|
"google-libphonenumber": "3.2.31",
|
||||||
"googleapis": "126.0.1",
|
"googleapis": "126.0.1",
|
||||||
|
|
||||||
"ibm-watson": "7.1.2",
|
"ibm-watson": "7.1.2",
|
||||||
"iso-639-1": "3.1.1",
|
"iso-639-1": "3.1.1",
|
||||||
"join-images-updated": "1.1.4",
|
"join-images-updated": "1.1.4",
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -74,6 +74,8 @@ export class SMSAuthDialog extends IGBDialog {
|
||||||
mobile,
|
mobile,
|
||||||
Messages[locale].please_use_code(code)
|
Messages[locale].please_use_code(code)
|
||||||
);
|
);
|
||||||
|
await min.conversationalService.sendSms(min, mobile, Messages[locale].please_use_code(code));
|
||||||
|
|
||||||
return await min.conversationalService.prompt(min, step, Messages[locale].confirm_mobile);
|
return await min.conversationalService.prompt(min, step, Messages[locale].confirm_mobile);
|
||||||
},
|
},
|
||||||
async (step) => {
|
async (step) => {
|
||||||
|
|
|
@ -53,7 +53,7 @@ import e from 'express';
|
||||||
import { GBUtil } from '../../../src/util.js';
|
import { GBUtil } from '../../../src/util.js';
|
||||||
const { WAState, List, Buttons, Client, MessageMedia } = pkg;
|
const { WAState, List, Buttons, Client, MessageMedia } = pkg;
|
||||||
import twilio from 'twilio';
|
import twilio from 'twilio';
|
||||||
const { MessagingResponse } = twilio.twiml;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Support for Whatsapp.
|
* Support for Whatsapp.
|
||||||
|
|
Loading…
Add table
Reference in a new issue