diff --git a/core/version b/core/version index 0b9c019..0b69c00 100644 --- a/core/version +++ b/core/version @@ -1 +1 @@ -0.3.12 +0.3.14 diff --git a/templates/core/config.go.tmpl b/templates/core/config.go.tmpl index 1a211e3..a653c31 100644 --- a/templates/core/config.go.tmpl +++ b/templates/core/config.go.tmpl @@ -53,7 +53,7 @@ func init() { AppConfig.Service = service AppConfig.Host, _ = os.Hostname() AppConfig.User = os.Getenv("USER") - AppConfig.Sid = uuid.NewString() + AppConfig.Sid = uuid.Must(uuid.NewV7).String() // parse command line arguments flag.StringVar(&AppConfig.PortNb, "port", AppConfig.PortNb, "Port number to listen by the server") diff --git a/templates/rest/handler.go.tmpl b/templates/rest/handler.go.tmpl index ecb2236..a7d7174 100644 --- a/templates/rest/handler.go.tmpl +++ b/templates/rest/handler.go.tmpl @@ -19,7 +19,7 @@ func init() { func getSession(c echo.Context) (*sessions.Session, error) { session, err := sessionStore.Get(c.Request(), "session") if err != nil || session.IsNew { - id := uuid.NewString() + id := uuid.Must(uuid.NewV7).String() log.Info().Str("id",id).Msg("New session") session.Values["id"] = id //