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
1 changed files with 1 additions and 1 deletions

View File

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