π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Validate file-link password KDF parameters
Neeraj Guptaf58410bc3e8d
diff --git a/server/ente/file_link.go b/server/ente/file_link.goindex 14a5135051..41b853823a 100644--- a/server/ente/file_link.go+++ b/server/ente/file_link.go@@ -53,6 +53,9 @@ func (ut *UpdateFileUrl) Validate() error {if !(allPassParamsMissing || allPassParamsPresent) {return NewBadRequestWithMessage("all password params should be either present or missing")}+ if err := validatePublicLinkKDFParams(ut.MemLimit, ut.OpsLimit); err != nil {+ return err+ }if allPassParamsPresent && ut.DisablePassword != nil && *ut.DisablePassword {return NewBadRequestWithMessage("can not set and disable password in same request")