feat(security): #286 anonymous sign in for csrf token on login form
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 11m7s
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 11m7s
This commit is contained in:
@@ -2,6 +2,7 @@ package middleware
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"me-fit/service"
|
||||
|
||||
"net/http"
|
||||
@@ -43,5 +44,5 @@ func getSessionID(r *http.Request) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
return cookie.Name
|
||||
return cookie.Value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user