From 0c2a413c28f77156ce7eb297ac27530fc7ca64f6 Mon Sep 17 00:00:00 2001 From: "wangiegie@gmail.com" Date: Sat, 30 Dec 2017 18:39:53 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E8=B4=A6=E6=88=B7=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/github/pig/auth/util/UserDetailsImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pig-auth-service/src/main/java/com/github/pig/auth/util/UserDetailsImpl.java b/pig-auth-service/src/main/java/com/github/pig/auth/util/UserDetailsImpl.java index df36a2a7..7de882a3 100644 --- a/pig-auth-service/src/main/java/com/github/pig/auth/util/UserDetailsImpl.java +++ b/pig-auth-service/src/main/java/com/github/pig/auth/util/UserDetailsImpl.java @@ -67,7 +67,7 @@ public class UserDetailsImpl implements UserDetails { @Override public boolean isEnabled() { - return StringUtils.equals(CommonConstant.STATUS_NORMAL, status) ? false : true; + return StringUtils.equals(CommonConstant.STATUS_NORMAL, status) ? true : false; } public void setUsername(String username) {