Implement saved sessions

This commit is contained in:
William Bouzourène 2025-01-08 15:21:47 +01:00
parent 025b984314
commit fa0e917d34
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
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()