renren-fast登录过程
2021-08-19 11:07:31 0 举报
登录查看完整内容
renren-fast登录流程图详情
作者其他创作
大纲/内容
前端用户登录(用户名、密码、验证码、uuid)
根据用户id查询表(sys_user_token)
判断验证码是否存在
1、SysLoginController->getCaptcha2、使用Kaptcha创建随机验证码3、创建captchaEntity(将验证码和uuid绑定,并设置过期时间,保存到sys_captcha表中)
不存在
否
1、判断比对验证码是否正确2、比较验证码是否过期
验证码的创建和存储过程
是
请求结束,返回错误消息(验证码不正确)
1、更新token内容2、更新token过期时间3、跟新token
用户状态是否被锁定
判断该用户是否已经存在token
1、utils/index/getUUID创建一个uuid2、views/common/login img获取后台的图片,同时传递uuid
验证码不正确或过期
是否存在该用户
根据uuid查询数据库中的验证码
根据用户名查询用户
删除该条验证码-uuid记录
收藏
0 条评论
回复 删除
下一页