Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

security 短信验证码登录,验证码不存在 #24

Closed
fengjunzixian opened this issue Dec 12, 2019 · 3 comments
Closed

security 短信验证码登录,验证码不存在 #24

fengjunzixian opened this issue Dec 12, 2019 · 3 comments

Comments

@fengjunzixian
Copy link

获取到了验证码后登陆,在校验验证码过滤器时候

@fengjunzixian
Copy link
Author

SmsCode codeInSession = (SmsCode) sessionStrategy.getAttribute(servletWebRequest, ValidateController.SESSION_KEY_SMS_CODE mobileInRequest);
sessionStrategy 获取不到之前设置的 缓存id

@wuyouzhuguli
Copy link
Owner

是不是存储的key和获取的key不一致?文章源码我是跑过后才上传的,可以参考下。

@fengjunzixian
Copy link
Author

不好意思, 手机号写死了,生成校验码的是177777777, 登录请求的是实际填写的手机号,两者不一致....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants