feat(security): set secure auth cookie
This commit is contained in:
parent
c2a228b1ca
commit
ec45abd911
1 changed files with 1 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ func (ctrl *Controller) LoginPost(c echo.Context) error {
|
|||
Path: "/",
|
||||
MaxAge: 3600 * 24 * 2,
|
||||
HttpOnly: true,
|
||||
Secure: true,
|
||||
}
|
||||
sess.Values["user"] = user.ID
|
||||
sess.Save(c.Request(), c.Response())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue