fix: user curd panic after install

This commit is contained in:
Jacky 2025-02-07 21:54:42 +08:00
parent c5bd8cc580
commit d83272d5b8
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
6 changed files with 16 additions and 24 deletions

View file

@ -6,7 +6,7 @@ import (
"io"
"net/http"
"github.com/0xJacky/Nginx-UI/internal/sign"
"github.com/0xJacky/Nginx-UI/internal/crypto"
"github.com/gin-gonic/gin"
"github.com/uozi-tech/cosy"
)
@ -30,7 +30,7 @@ func EncryptedParams() gin.HandlerFunc {
}
// 2. Decrypt the parameters (implement your decryption logic)
decryptedData, err := sign.Decrypt(encryptedReq.EncryptedParams)
decryptedData, err := crypto.Decrypt(encryptedReq.EncryptedParams)
if err != nil {
c.AbortWithStatusJSON(http.StatusBadRequest, ErrDecryptionFailed)
return