- 用户注册与登录
- 关联QQ邮箱,注册时发送验证码邮件
- 登录成功后获取token并缓存在本地
- 用户登出,销毁Token
- Session/Cookie 保持会话
- 用户新登录时需要填写验证码,验证码图片由后台Python生成并缓存到Redis,图片显示于前端,登录时前端数据与数据库数据校验
* 用户密码两次加密,前后端各加密一次
* 利用flask_mail多线程发送邮箱
* 邮箱验证码缓存在Redis中
此项目基本上实现了关于用户的业务逻辑需求,后续的需求可以在此模板上进行再次开发.
flask + Vue => 前后端分离, 提供一个可以复用的 用户注册登录,QQ邮箱接收验证码,Token验证,session/cookie 登录的 模板
* 用户密码两次加密,前后端各加密一次
* 利用flask_mail多线程发送邮箱
* 邮箱验证码缓存在Redis中
此项目基本上实现了关于用户的业务逻辑需求,后续的需求可以在此模板上进行再次开发.
我在启懂manager.py 之后,发现访问的所有网站都失败了,显示404
Hi
models里面的用户应该是定义成class Users吧,少了个s
还有,不知道你auth文件里面的common方法是哪儿来的?
祝好运
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.