Browse Source

fix: can't init admin user when start

master
vran 3 years ago
parent
commit
70bd054a9c
  1. 2
      core/src/main/java/com/databasir/core/domain/system/service/SystemService.java

2
core/src/main/java/com/databasir/core/domain/system/service/SystemService.java

@ -50,7 +50,7 @@ public class SystemService {
String email = "N/A";
String username = "databasir";
Optional<UserPojo> userOpt = userDao.selectByEmail(email);
Optional<UserPojo> userOpt = userDao.selectByEmailOrUsername(username);
if (!userOpt.isPresent()) {
UserPojo admin = new UserPojo();
admin.setEmail(email);

Loading…
Cancel
Save