commit b30cb6b12f12d17522465241e1d27f2f913ed4ec
parent 3b8e0616ff6c3fbfe57180d68e83913b593bc8ce
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Wed, 11 Jan 2023 14:34:40 -0800
add doc
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/web/handlers/chat.go b/pkg/web/handlers/chat.go
@@ -109,6 +109,7 @@ func handlePost(c echo.Context, data chatData, authUser *database.User) error {
return c.Redirect(http.StatusFound, c.Request().Referer())
}
+// Logout of a protected room (delete room cookies)
func handleLogoutPost(c echo.Context, room database.ChatRoom) error {
hutils.DeleteRoomCookie(c, int64(room.ID))
return c.Redirect(http.StatusFound, "/chat")