标签:
[https://github.com/raptorz/userga]
一个可以不用密码的用户系统。默认只需要输入email即可注册或登录,如果需要密码,可以使用Google Authenticator扫描邮件中的二维码,使用GA生成的一次性密码登录。
cd /usr/ports/databases/py-sqlite3 # for FreeBSD
sudo make PYTHON_VERSION=python3.4 install # for FreeBSD
pip install -r requirements.txt
python userga.py
配置文件为当前目录下的config.json,内容为:
{
"db_url": "sqlite:///userga.dat",
"web_path": "userga",
"web_addr": "127.0.0.1",
"web_port": 8001,
"debug": True,
}
程序代码中包含以下第三方前端库:
标签:
原文地址:http://blog.csdn.net/raptor/article/details/50765213