Also remove the CSRF token when logged out

This commit is contained in:
VnPower
2024-04-20 20:43:25 +07:00
parent 4c97378183
commit 3e38e0fc56
+1
View File
@@ -88,6 +88,7 @@ func setNovelFontType(c *fiber.Ctx) error {
func setLogout(c *fiber.Ctx) error {
session.ClearCookie(c, session.Cookie_Token)
session.ClearCookie(c, session.Cookie_CSRF)
return nil
}