mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-18 17:56:59 +08:00
fix: can't init admin user when start
This commit is contained in:
@@ -50,7 +50,7 @@ public class SystemService {
|
|||||||
|
|
||||||
String email = "N/A";
|
String email = "N/A";
|
||||||
String username = "databasir";
|
String username = "databasir";
|
||||||
Optional<UserPojo> userOpt = userDao.selectByEmail(email);
|
Optional<UserPojo> userOpt = userDao.selectByEmailOrUsername(username);
|
||||||
if (!userOpt.isPresent()) {
|
if (!userOpt.isPresent()) {
|
||||||
UserPojo admin = new UserPojo();
|
UserPojo admin = new UserPojo();
|
||||||
admin.setEmail(email);
|
admin.setEmail(email);
|
||||||
|
Reference in New Issue
Block a user