mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:32:25 -05:00
remove cookie length check , constant time compare handles this
This commit is contained in:
parent
c34589d281
commit
bfd4d5ab18
1 changed files with 0 additions and 8 deletions
|
|
@ -125,14 +125,6 @@ func (m *nollamas) Serve(c *gin.Context) {
|
|||
|
||||
// Check for a provided success token.
|
||||
cookie, _ := c.Cookie("gts-nollamas")
|
||||
if len(cookie) > encodedHashLen {
|
||||
|
||||
// Clearly invalid cookie, just
|
||||
// present them with new challenge.
|
||||
l.Warn("invalid cookie provided")
|
||||
m.renderChallenge(c, challenge)
|
||||
return
|
||||
}
|
||||
|
||||
// Check whether passed cookie
|
||||
// is the expected success token.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue