mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
fix: user curd panic after install
This commit is contained in:
parent
c5bd8cc580
commit
d83272d5b8
6 changed files with 16 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue