cookie update
This commit is contained in:
Binary file not shown.
@@ -40,6 +40,7 @@ func sessionCookie(id int, player string) (*http.Cookie, error) {
|
|||||||
Name: cookieName,
|
Name: cookieName,
|
||||||
Value: sessionID,
|
Value: sessionID,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
|
Domain: load_data["siteUnlock"].(string),
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Secure: true,
|
Secure: true,
|
||||||
SameSite: http.SameSiteNoneMode,
|
SameSite: http.SameSiteNoneMode,
|
||||||
|
|||||||
@@ -67,6 +67,6 @@ var (
|
|||||||
".jpeg": true,
|
".jpeg": true,
|
||||||
".gif": true,
|
".gif": true,
|
||||||
}
|
}
|
||||||
cookieName string = "playerSession"
|
cookieName string = "_Session_"
|
||||||
load_data map[string]interface{}
|
load_data map[string]interface{}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ func main() {
|
|||||||
log.Println("concluido, back_end rodando")
|
log.Println("concluido, back_end rodando")
|
||||||
|
|
||||||
/* rotas */
|
/* rotas */
|
||||||
|
|
||||||
e.GET("logout", logout)
|
e.GET("logout", logout)
|
||||||
e.GET("/", online)
|
e.GET("/", online)
|
||||||
e.GET("roll", roll_get)
|
e.GET("roll", roll_get)
|
||||||
|
|||||||
BIN
source.zip
Normal file
BIN
source.zip
Normal file
Binary file not shown.
Reference in New Issue
Block a user