diff options
Diffstat (limited to 'protocols/WhatsApp/src/WhatsAPI++')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp b/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp index 2db12da5b5..2f6754d45e 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WARegister.cpp @@ -10,11 +10,12 @@ using namespace Utilities;
-/////////////////////////////////////////////////////////////////////////////////////////
-// Token generation
+static char WaToken[] = WHATSAPP_TOKEN;
-static char WaToken[] = "PdA2DJyKoUrwLw1Bg6EIhzh502dF9noR9uFCllGk1442277896714";
+/////////////////////////////////////////////////////////////////////////////////////////
+// Token generation
+//
std::string WAToken::GenerateToken(const string &number)
{
uint8_t digest[16];
@@ -27,6 +28,7 @@ std::string WAToken::GenerateToken(const string &number) /////////////////////////////////////////////////////////////////////////////////////////
// Account registration
+//
CMStringA WARegister::RequestCodeUrl(const std::string &phoneNumber, const std::string &code)
{
try {
|