Implement saved sessions

This commit is contained in:
William Bouzourène 2025-01-08 15:21:47 +01:00
parent 9bec3a591e
commit 71e39dcf62
9 changed files with 187 additions and 0 deletions

View file

@ -51,6 +51,10 @@ func LoginForm(c *fiber.Ctx) error {
}
}
if c.FormValue("save_session") == "on" {
sess.Set("create-saved-session", "yes")
}
sess.Set("userid", user.ID)
sess.Save()