Skip to content

Commit 5cef941

Browse files
committed
refactor(crypto): remove timestamp check in GetPublicKey function #1274, #1275
1 parent 552cf5c commit 5cef941

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

api/crypto/crypto.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package crypto
22

33
import (
44
"net/http"
5-
"time"
65

76
"github.com/0xJacky/Nginx-UI/internal/crypto"
87
"github.com/gin-gonic/gin"
@@ -21,11 +20,6 @@ func GetPublicKey(c *gin.Context) {
2120
return
2221
}
2322

24-
if time.Now().Unix()-data.Timestamp > 10 {
25-
cosy.ErrHandler(c, crypto.ErrTimeout)
26-
return
27-
}
28-
2923
params, err := crypto.GetCryptoParams()
3024
if err != nil {
3125
cosy.ErrHandler(c, err)

0 commit comments

Comments
 (0)