chore: remove secure flag (#848)

This commit is contained in:
boojack 2022-12-24 08:31:37 +08:00 committed by GitHub
parent fae9b3db46
commit 27fd1e2880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,6 @@ func setUserSession(ctx echo.Context, user *api.User) error {
Path: "/",
MaxAge: 3600 * 24 * 30,
HttpOnly: true,
Secure: true,
}
sess.Values[userIDContextKey] = user.ID
err := sess.Save(ctx.Request(), ctx.Response())