From 4935465a69042374c4042eb4b94075f367829d18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=A3=E5=AE=B6=E5=BD=AA?= Date: Mon, 21 Feb 2022 11:07:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor(WechatAuthenticationToken.java):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B8=83=E5=B0=94=E5=80=BC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/extension/wechat/WechatAuthenticationToken.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationToken.java b/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationToken.java index b9ada3eeb..23bdc4313 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationToken.java +++ b/youlai-auth/src/main/java/com/youlai/auth/security/extension/wechat/WechatAuthenticationToken.java @@ -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); }