MCPcopy Create free account
hub / github.com/actiontech/dtle / createPlatformUser

Function createPlatformUser

api/handler/v2/login.go:148–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func createPlatformUser() {
149 logger := handler.NewLogger().Named("CreatePlatformUser")
150 user := &common.User{
151 Username: common.DefaultAdminUser,
152 Tenant: common.DefaultAdminTenant,
153 Role: common.DefaultRole,
154 Password: common.DefaultAdminPwd,
155 CreateTime: time.Now().In(time.Local).Format(time.RFC3339),
156 }
157 if g.RsaPrivateKey != "" {
158 user.Password = common.DefaultEncryptAdminPwd
159 }
160 _ = createUser(logger, user)
161}

Callers

nothing calls this directly

Calls 2

NewLoggerFunction · 0.92
createUserFunction · 0.85

Tested by

no test coverage detected