Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Shorten share password token lifetime

Manav Rathic01ba169a4a2
diff --git a/server/pkg/controller/public/link_common.go b/server/pkg/controller/public/link_common.go
index db85068494..0753614e18 100644
--- a/server/pkg/controller/public/link_common.go
+++ b/server/pkg/controller/public/link_common.go
@@ -40,7 +40,7 @@ func verifyPassword(secret []byte, expectedPassHash *string, req ente.VerifyPass
}
token := jwt.NewWithClaims(jwt.SigningMethodHS256, &enteJWT.LinkPasswordClaim{
PassHash: req.PassHash,
- ExpiryTime: time.NDaysFromNow(365),
+ ExpiryTime: time.NDaysFromNow(30),
})
// Sign and get the complete encoded token as a string using the secret
tokenString, err := token.SignedString(secret)