1
0

chore(web): remove unused echo context

(cherry picked from commit 329de3aab3cf0f15759ef1e20e865d3ad801d56e)
This commit is contained in:
kolaente
2024-08-29 16:20:39 +02:00
parent be8ecb6d36
commit 198b2e3b70
29 changed files with 175 additions and 175 deletions

View File

@ -56,7 +56,7 @@ func AuthenticateLinkShare(c echo.Context) error {
sh := &LinkShareAuth{}
err := c.Bind(sh)
if err != nil {
return handler.HandleHTTPError(err, c)
return handler.HandleHTTPError(err)
}
s := db.NewSession()
@ -64,19 +64,19 @@ func AuthenticateLinkShare(c echo.Context) error {
share, err := models.GetLinkShareByHash(s, sh.Hash)
if err != nil {
return handler.HandleHTTPError(err, c)
return handler.HandleHTTPError(err)
}
if share.SharingType == models.SharingTypeWithPassword {
err := models.VerifyLinkSharePassword(share, sh.Password)
if err != nil {
return handler.HandleHTTPError(err, c)
return handler.HandleHTTPError(err)
}
}
t, err := auth.NewLinkShareJWTAuthtoken(share)
if err != nil {
return handler.HandleHTTPError(err, c)
return handler.HandleHTTPError(err)
}
share.Password = ""