Allow auth through cookie X-Ripple-Token

This commit is contained in:
Howl 2016-06-08 18:55:48 +02:00
parent ee51b999f1
commit 155fbabbbc
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ func initialCaretaker(c *gin.Context, f func(md common.MethodData) common.CodeMe
token = c.Query("token")
case c.Query("k") != "":
token = c.Query("k")
default:
token, _ = c.Cookie("X-Ripple-Token")
}
md := common.MethodData{