提交 e9c500bc 编写于 作者: T Tijs Rademakers

Removed sysouts

上级 804bdec5
......@@ -57,9 +57,6 @@
<fileset dir="../modules/activiti-spring/target">
<include name="activiti-spring-*.jar" />
</fileset>
<fileset dir="../modules/activiti-spring-boot/target">
<include name="activiti-spring-boot-*.jar" />
</fileset>
<fileset dir="../modules/activiti-bpmn-model/target">
<include name="activiti-bpmn-model-*.jar" />
</fileset>
......
......@@ -27,7 +27,6 @@ public class BasicAuthenticationProvider implements AuthenticationProvider {
String password = authentication.getCredentials().toString();
boolean authenticated = identityService.checkPassword(name, password);
System.out.println("name " + name + " " + authenticated);
if (authenticated) {
List<Group> groups = identityService.createGroupQuery().groupMember(name).list();
Collection<GrantedAuthority> grantedAuthorities = new ArrayList<GrantedAuthority>();
......@@ -35,7 +34,6 @@ public class BasicAuthenticationProvider implements AuthenticationProvider {
grantedAuthorities.add(new SimpleGrantedAuthority(group.getId()));
}
identityService.setAuthenticatedUserId(name);
System.out.println("authenticated " + name);
return new UsernamePasswordAuthenticationToken(name, password, grantedAuthorities);
} else {
throw new BadCredentialsException("Authentication failed for this username and password");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册