|
@@ -114,7 +114,7 @@ public class AccountRegistryServiceImpl implements AccountRegistryService {
|
|
|
String password = ConstantId.ADMIN_PASSWORD;
|
|
String password = ConstantId.ADMIN_PASSWORD;
|
|
|
String salt = RandomString.getSalt(64);
|
|
String salt = RandomString.getSalt(64);
|
|
|
String encodedPassword = passwordEncoder.encode(password + salt);
|
|
String encodedPassword = passwordEncoder.encode(password + salt);
|
|
|
- Set<UserAuthority> authorities = Set.of(new UserAuthority(AccountRole.ROLE_TNB_ADMIN.getValue()));
|
|
|
|
|
|
|
+ Set<UserAuthority> authorities = Set.of(new UserAuthority(AccountRole.ROLE_TNB_ADMIN.name()));
|
|
|
|
|
|
|
|
UserAccount userAccount = new UserAccount(principal, userId, encodedPassword, salt, authorities);
|
|
UserAccount userAccount = new UserAccount(principal, userId, encodedPassword, salt, authorities);
|
|
|
accountRepository.saveAccount(userAccount);
|
|
accountRepository.saveAccount(userAccount);
|