Update event names

This commit is contained in:
Jonathan Leibiusky @xetorthio
2017-07-24 14:55:17 -03:00
parent fd7441943d
commit 8424479e76
6 changed files with 32 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/gorilla/securecookie"
"github.com/play-with-docker/play-with-docker/config"
"github.com/twinj/uuid"
"github.com/rs/xid"
)
func GetGoogleRecaptchaSiteKey() string {
@@ -79,7 +79,7 @@ func IsHuman(req *http.Request, rw http.ResponseWriter) bool {
return false
}
encoded, _ := s.Encode("session_id", uuid.NewV4().String())
encoded, _ := s.Encode("session_id", xid.New().String())
http.SetCookie(rw, &http.Cookie{
Name: "session_id",
Value: encoded,