Skip to content

Commit

Permalink
SHIBUI-2111
Browse files Browse the repository at this point in the history
merge gone bad resolution
  • Loading branch information
chasegawa committed Sep 29, 2021
1 parent 92f81e7 commit af3484c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public class WebSecurityConfig {

@Bean
@Profile("!no-auth")
public AdminUserService adminUserService(UserRepository userRepository) {
return new AdminUserService(userRepository);
public AdminUserService adminUserService(UserService userService) {
return new AdminUserService(userService);
}

private HttpFirewall allowUrlEncodedSlashHttpFirewall() {
Expand Down Expand Up @@ -128,7 +128,7 @@ protected void configure(AuthenticationManagerBuilder auth) throws Exception {
.password(defaultPassword)
.roles("ADMIN");
}
auth.userDetailsService(adminUserService(userRepository)).passwordEncoder(passwordEncoder);
auth.userDetailsService(adminUserService(userService)).passwordEncoder(passwordEncoder);
}

@Override
Expand Down

0 comments on commit af3484c

Please sign in to comment.