summaryrefslogtreecommitdiff
path: root/internal/models/auth.go
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-05-05 08:57:23 +0300
committerGrailFinder <wohilas@gmail.com>2024-05-05 08:57:23 +0300
commitff86222fc9ab85fb4c5c5e8a063083595b323761 (patch)
tree01dbec5503bfabc21af93acdbfe3d1000e2386a0 /internal/models/auth.go
parent8d66ec58e2256412a2fd50ad9e651c09af1ea8cc (diff)
Enha: protected cookies
Diffstat (limited to 'internal/models/auth.go')
-rw-r--r--internal/models/auth.go5
1 files changed, 2 insertions, 3 deletions
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