remove http only
This commit is contained in:
@@ -43,9 +43,11 @@ func Login(c echo.Context) (err error) {
|
||||
}
|
||||
|
||||
c.SetCookie(&http.Cookie{
|
||||
Name: "accessToken",
|
||||
Value: _token,
|
||||
Path: "/",
|
||||
Name: "accessToken",
|
||||
Value: _token,
|
||||
Path: "/",
|
||||
MaxAge: 31536000,
|
||||
Expires: time.Now().Add(24 * time.Hour),
|
||||
})
|
||||
|
||||
return c.JSON(http.StatusOK, u)
|
||||
|
||||
Reference in New Issue
Block a user