摘要: 短信验证码登录 public class ValidateCode { private String code; //有效期 private LocalDateTime expireTime; public ValidateCode(String code, int expireTime) { th 阅读全文
posted @ 2020-01-29 17:01 fly_bk 阅读(1131) 评论(0) 推荐(0)
摘要: 记住我 token保存到数据库 这里使用jpa+mysql 设置配置rememberme 阅读全文
posted @ 2020-01-29 12:10 fly_bk 阅读(2054) 评论(0) 推荐(0)
摘要: 图形验证码 定义验证码 请求的验证码会保存到session中 验证过滤器 将验证码过滤加到UsernamePasswordAuthenticationFilter前面,将图片验证码请求允许访问 开始login吧 图形验证码重构 只需创建继承ValidateCodeGenerator的imageVal 阅读全文
posted @ 2020-01-29 12:01 fly_bk 阅读(279) 评论(0) 推荐(0)