mirror of
https://github.com/hazemKrimi/crimson-vault.git
synced 2026-05-01 18:20:27 +00:00
wip: debugging session authentication
This commit is contained in:
@@ -23,7 +23,7 @@ func GetConfigDirectory() (string, error) {
|
||||
func ConstructSession(session *sessions.Session, user types.User) {
|
||||
session.Options = &sessions.Options{
|
||||
Path: "/",
|
||||
MaxAge: 86400 * 7,
|
||||
MaxAge: 3600,
|
||||
HttpOnly: true,
|
||||
}
|
||||
session.Values["id"] = user.ID
|
||||
|
||||
Reference in New Issue
Block a user