From ff86222fc9ab85fb4c5c5e8a063083595b323761 Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 5 May 2024 08:57:23 +0300 Subject: Enha: protected cookies --- internal/models/auth.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/models/auth.go') diff --git a/internal/models/auth.go b/internal/models/auth.go index 5dadf8a..9964cd5 100644 --- a/internal/models/auth.go +++ b/internal/models/auth.go @@ -6,9 +6,8 @@ import ( // each session contains the username of the user and the time at which it expires type Session struct { - Username string - CurrentRoom string - Expiry time.Time + Username string + Expiry time.Time } // we'll use this method later to determine if the session has expired -- cgit v1.2.3