fix setup

This commit is contained in:
_Bastler 2021-10-03 17:31:37 +02:00
parent 3fffe798cd
commit 0842b1dfb8

View File

@ -96,6 +96,7 @@ public class UserManager implements UserDetailsService, SmartInitializingSinglet
admin.setUsername("admin"); admin.setUsername("admin");
admin.setRoles(Lists.newArrayList("ROLE_ADMIN")); admin.setRoles(Lists.newArrayList("ROLE_ADMIN"));
admin.setPasswordHash(passwordEncoder.encode(adminPassword)); admin.setPasswordHash(passwordEncoder.encode(adminPassword));
admin.setLocale("en");
localUserRepository.save(admin); localUserRepository.save(admin);
} }
} }