ZhuDongming
2019-10-09 578e49d67183d8d12a6af7e8244a9d152cb366d4
src/main/java/com/moral/security/auth/login/LoginAuthenticationProvider.java
@@ -70,7 +70,7 @@
            throw new InsufficientAuthenticationException("User has no roles assigned");
        }
        List<GrantedAuthority> authorities = account.getRoles().stream()
                .map(authority -> new SimpleGrantedAuthority(authority.getName()))
                .map(authority -> new SimpleGrantedAuthority(authority.getRoleName()))
                .collect(Collectors.toList());
        UserContext userContext = UserContext.create(account.getAccountName(),mode,account.getOrganizationId(),authorities);