mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Security: Use individual preview tokens for each user account #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -42,7 +42,7 @@ func SearchLabels(router *gin.RouterGroup) {
|
||||
// TODO c.Header("X-Count", strconv.Itoa(count))
|
||||
AddLimitHeader(c, f.Count)
|
||||
AddOffsetHeader(c, f.Offset)
|
||||
AddTokenHeaders(c)
|
||||
AddTokenHeaders(c, s)
|
||||
|
||||
c.JSON(http.StatusOK, result)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user