mirror of
https://github.com/arkorty/Reduce.git
synced 2026-03-18 00:47:10 +00:00
fix: patch version 2.1
This commit is contained in:
@@ -187,6 +187,7 @@ func login(c echo.Context) error {
|
||||
|
||||
// Set httpOnly cookie
|
||||
cookie := &http.Cookie{
|
||||
Domain: os.Getenv("COOKIE_DOMAIN"),
|
||||
Name: "token",
|
||||
Value: token,
|
||||
Path: "/",
|
||||
@@ -210,6 +211,7 @@ func logout(c echo.Context) error {
|
||||
Path: "/",
|
||||
HttpOnly: true,
|
||||
MaxAge: -1, // Delete cookie
|
||||
Domain: os.Getenv("COOKIE_DOMAIN"),
|
||||
}
|
||||
c.SetCookie(cookie)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user