小编jar*_*der的帖子

使用Django和Twilio进行一次性用户身份验证

我正在Django为我正在创建的移动应用程序编写一个后端.我需要在用户第一次通过短信打开移动应用程序时对用户进行身份验证,以确认用户是真人.需要做的是:用户在应用程序中输入电话号码,然后服务器向用户发送带有验证码的短信,然后用户在应用程序中输入验证码,服务器验证他们在应用程序中输入的代码是否与收到的代码相同通过短信.

我需要在我的Django项目中使用Twilio.我只需要知道最好的方法是什么?这个(移动应用程序)的前端不是我要问的,我问的是应该实现的后端代码.我正在努力寻找可以做到这一点的django-twilio集成的最新文档.

django sms twilio

10
推荐指数
2
解决办法
7930
查看次数

带有文件流错误的C++ Void函数

我正在尝试编写一个代码,它接受一个输入文件并组织它并计算一些值.但是,我遇到了一个问题,我的getName函数应该通过引用参数调用一个名和一个名来调用,如果读取-1,则使用get成员函数对输入文件中的字符求和.以下是代码的错误参数:

main.cpp:7:14: error: variable or field 'getName' declared void
main.cpp:7:14: error: 'ifstream' was not declared in this scope
main.cpp:7:24: error: 'shoppingCartInput' was not declared in this scope
main.cpp:7:43: error: 'string' was not declared in this scope
main.cpp:7:51: error: 'firstname' was not declared in this scope
main.cpp:7:62: error: 'string' was not declared in this scope
main.cpp:7:70: error: 'lastname' was not declared in this scope
main.cpp:102:50: error: 'getName' was not declared in this scope
Run Code Online (Sandbox Code Playgroud)

这是代码:

#include <iostream>
#include <string>
#include <fstream>
#include …
Run Code Online (Sandbox Code Playgroud)

c++ filestream void

4
推荐指数
2
解决办法
2万
查看次数

标签 统计

c++ ×1

django ×1

filestream ×1

sms ×1

twilio ×1

void ×1