mirror of
https://github.com/h44z/wg-portal.git
synced 2026-11-20 20:53:40 +01:00
+4
-6
@@ -122,12 +122,10 @@ func (a *App) createDefaultUser(ctx context.Context) error {
|
||||
|
||||
now := time.Now()
|
||||
defaultAdmin := &domain.User{
|
||||
BaseModel: domain.BaseModel{
|
||||
CreatedBy: domain.CtxSystemAdminId,
|
||||
UpdatedBy: domain.CtxSystemAdminId,
|
||||
CreatedAt: now,
|
||||
UpdatedAt: now,
|
||||
},
|
||||
CreatedBy: domain.CtxSystemAdminId,
|
||||
UpdatedBy: domain.CtxSystemAdminId,
|
||||
CreatedAt: now,
|
||||
UpdatedAt: now,
|
||||
Identifier: adminUserId,
|
||||
Email: "admin@wgportal.local",
|
||||
IsAdmin: true,
|
||||
|
||||
Reference in New Issue
Block a user