Browse Source

Adding auth db schema

main
ddangelorb 3 years ago
parent
commit
a82d6445f6
  1. 11
      src/main/java/org/waterproofingdata/wpdauth/WpdauthApplication.java

11
src/main/java/org/waterproofingdata/wpdauth/WpdauthApplication.java

@ -40,17 +40,6 @@ public class WpdauthApplication implements CommandLineRunner {
userService.signup(admin);
}
if (!userService.existsByUsername("client")) {
Users client = new Users();
client.setUsername("client");
client.setPassword("client");
client.setEmail("client@email.com");
client.setActive(1);
client.setRoles(new ArrayList<Roles>(Arrays.asList(Roles.ROLE_CLIENT)));
userService.signup(client);
}
}
}
Loading…
Cancel
Save