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

验证码失效问题 #2

Open
zhangyq73 opened this issue May 20, 2021 · 0 comments
Open

验证码失效问题 #2

zhangyq73 opened this issue May 20, 2021 · 0 comments

Comments

@zhangyq73
Copy link

    // 从session中获取之前保存的验证码跟前台传来的验证码进行匹配
    Object kaptcha = request.getSession().getAttribute(Constants.KAPTCHA_SESSION_KEY);
    if (kaptcha == null) {
        return HttpResult.error("验证码已失效");
    }

调试跟踪,这个kaptcha是null值,如果注释掉,则登陆页面没有反应,选用的git上最新的版本,wepapp重新编译过,用git下来
自带的编译好的页面访问,也是一样的错误

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

1 participant