diff --git a/src/main/java/org/apache/pulsar/manager/PulsarApplicationListener.java b/src/main/java/org/apache/pulsar/manager/PulsarApplicationListener.java index ed2fb873..bd731b88 100644 --- a/src/main/java/org/apache/pulsar/manager/PulsarApplicationListener.java +++ b/src/main/java/org/apache/pulsar/manager/PulsarApplicationListener.java @@ -79,6 +79,9 @@ public void onApplicationEvent(ContextRefreshedEvent event) { private void seedDefaultSuperuser() { UserInfoEntity userInfoEntity = new UserInfoEntity(); + userInfoEntity.setName(defaultSuperuserName); + userInfoEntity.setEmail(defaultSuperuserEmail); + userInfoEntity.setPassword(defaultSuperuserPassword); Map userValidateResult = usersService.validateUserInfo(userInfoEntity); if (userValidateResult.get("error") != null) {