mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-03 11:24:34 +08:00
fix bugs
This commit is contained in:
@@ -265,7 +265,7 @@ public class DefaultUserTokenManager implements UserTokenManager {
|
||||
public void checkExpiredToken() {
|
||||
for (SimpleUserToken token : tokenStorage.values()) {
|
||||
checkTimeout(token);
|
||||
if (token.isExpired()) {
|
||||
if (token!=null&&token.isExpired()) {
|
||||
signOutByToken(token.getToken());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,14 +5,14 @@ import org.hswebframework.web.authorization.token.UserToken;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
public class UserTokenRemovedEvent extends ApplicationEvent implements AuthorizationEvent {
|
||||
private UserToken detail;
|
||||
|
||||
private static final long serialVersionUID = -6662943150068863177L;
|
||||
|
||||
public UserTokenRemovedEvent(UserToken token) {
|
||||
super(token);
|
||||
this.detail = detail;
|
||||
}
|
||||
|
||||
public UserToken getDetail() {
|
||||
return detail;
|
||||
return ((UserToken) getSource());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user