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

登录成功后,点击浏览器的buck按钮,之后就出现无法登录的问题,大家遇到过没 #24

Open
liuzhen1025 opened this issue Jun 24, 2016 · 1 comment

Comments

@liuzhen1025
Copy link

登录成功后,点击浏览器的buck按钮,之后就出现无法登录的问题,大家遇到过没

@liuzyhn
Copy link

liuzyhn commented Jun 24, 2016

在loginController的方法中添加(已经登录访问登录页时直接跳转首页):

    Subject subject = SecurityUtils.getSubject();
    if (subject.isAuthenticated()) {
        return "redirect:/";
    }

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