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) {