mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 20:54:26 +08:00
refactor(WechatAuthenticationToken.java):
优化布尔值判断
This commit is contained in:
parent
7b8c776b06
commit
4935465a69
@ -54,7 +54,7 @@ public class WechatAuthenticationToken extends AbstractAuthenticationToken {
|
||||
}
|
||||
|
||||
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException {
|
||||
Assert.isTrue(isAuthenticated == false, "Cannot set this token to trusted - use constructor which takes a GrantedAuthority list instead");
|
||||
Assert.isTrue(!isAuthenticated, "Cannot set this token to trusted - use constructor which takes a GrantedAuthority list instead");
|
||||
super.setAuthenticated(false);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user