Change X-Ripple-Token cookie to simply "rt"

This commit is contained in:
Howl 2016-08-10 12:25:26 +02:00
parent f1fa5e8b91
commit c3b56164f5

View File

@ -37,7 +37,7 @@ func initialCaretaker(c *gin.Context, f func(md common.MethodData) common.CodeMe
case c.Query("k") != "": case c.Query("k") != "":
token = c.Query("k") token = c.Query("k")
default: default:
token, _ = c.Cookie("X-Ripple-Token") token, _ = c.Cookie("rt")
} }
c.Set("token", fmt.Sprintf("%x", md5.Sum([]byte(token)))) c.Set("token", fmt.Sprintf("%x", md5.Sum([]byte(token))))