summaryrefslogtreecommitdiff
path: root/db/db.go
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2023-05-10 12:18:57 -0500
committersanine-a <sanine.not@pm.me>2023-05-10 12:18:57 -0500
commitfd994ce631ce7244157f81678574e6bc420d0fcc (patch)
treeaa1bac1a1419dc83588d2895ae54f5c8a3da8283 /db/db.go
parentfacfe2b26f1ce8cbc125f7f1192d2e0d65c51ae9 (diff)
implement user logins and gatekeeping
Diffstat (limited to 'db/db.go')
-rw-r--r--db/db.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/db.go b/db/db.go
index d9b4578..c58f6ad 100644
--- a/db/db.go
+++ b/db/db.go
@@ -56,6 +56,7 @@ type Model interface {
DeleteSession(session Session) error
TouchSession(session Session) error
CheckSession(session Session) (bool, error)
+ CheckSessionId(id string) (bool, error)
CleanSessions(maxIdle time.Duration) error
AllSessions() ([]Session, error)