Change soft deletion of sessions to be hard delete
This commit is contained in:
parent
21dc84a29c
commit
8f592a0f2e
|
@ -37,7 +37,7 @@ func ValidateSessionToken(token string) bool {
|
|||
return false
|
||||
}
|
||||
if session.ExpireAt.Unix() < time.Now().Unix() {
|
||||
dbc.Delete(session)
|
||||
dbc.Unscoped().Delete(session)
|
||||
return false
|
||||
}
|
||||
return session.ID != ""
|
||||
|
|
Loading…
Reference in New Issue
Block a user