Browse Source

退出方法修改

pull/22/head
RuoYi 6 years ago
parent
commit
8b4d3cecb4
  1. 2
      src/main/java/com/ruoyi/framework/shiro/web/filter/LogoutFilter.java

2
src/main/java/com/ruoyi/framework/shiro/web/filter/LogoutFilter.java

@ -46,7 +46,7 @@ public class LogoutFilter extends org.apache.shiro.web.filter.authc.LogoutFilter
String redirectUrl = getRedirectUrl(request, response, subject); String redirectUrl = getRedirectUrl(request, response, subject);
try try
{ {
User user = (User) ShiroUtils.getSubjct().getPrincipal(); User user = ShiroUtils.getUser();
if (StringUtils.isNotNull(user)) if (StringUtils.isNotNull(user))
{ {
String loginName = user.getLoginName(); String loginName = user.getLoginName();

Loading…
Cancel
Save