update session last used
This commit is contained in:
parent
433a19a2db
commit
4de39dd9d4
@ -32,6 +32,7 @@ func (s *Service) RequireSession(c *gin.Context) {
|
|||||||
s.Error(c, http.StatusInternalServerError, ErrSessionInvalid)
|
s.Error(c, http.StatusInternalServerError, ErrSessionInvalid)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
s.DB.Select("updated_at").Save(sess)
|
||||||
s.Logger.Printf("User: %s", sess.Account.Login)
|
s.Logger.Printf("User: %s", sess.Account.Login)
|
||||||
c.Set("session", sess)
|
c.Set("session", sess)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user