Change soft deletion of sessions to be hard delete

This commit is contained in:
qowevisa 2024-11-30 12:36:28 +02:00
parent 21dc84a29c
commit 8f592a0f2e

View File

@ -37,7 +37,7 @@ func ValidateSessionToken(token string) bool {
return false return false
} }
if session.ExpireAt.Unix() < time.Now().Unix() { if session.ExpireAt.Unix() < time.Now().Unix() {
dbc.Delete(session) dbc.Unscoped().Delete(session)
return false return false
} }
return session.ID != "" return session.ID != ""