From 2f36c2968c02f5e27cbfbcc815527cd1d9b12d86 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 31 Aug 2026 21:14:38 +0000 Subject: [PATCH] use native uuid --- app/routes.go | 4 ++-- go.mod | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/routes.go b/app/routes.go index d9c7389..6fed95b 100644 --- a/app/routes.go +++ b/app/routes.go @@ -8,10 +8,10 @@ import ( "fmt" "net/http" paas "proxmoxaas-common-lib" + "uuid" "github.com/gin-contrib/sessions" "github.com/gin-gonic/gin" - uuid "github.com/nu7hatch/gouuid" ) func POST_Ticket(c *gin.Context) { @@ -68,7 +68,7 @@ func POST_Ticket(c *gin.Context) { // create new session session := sessions.Default(c) // create random uuid to map user to backends - uuid, _ := uuid.NewV4() + uuid := uuid.NewV4() // set uuid mapping in session session.Set("SessionUUID", uuid.String()) // set uuid mapping in LDAPSessions diff --git a/go.mod b/go.mod index 23a750c..644399b 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,6 @@ require ( github.com/gin-gonic/gin v1.12.0 github.com/go-ldap/ldap/v3 v3.4.14 github.com/luthermonson/go-proxmox v0.8.1 - github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d proxmoxaas-common-lib v0.0.0 )