🐛 Bug fixes of picking up
All checks were successful
release-nightly / build-docker (push) Successful in 3m6s
All checks were successful
release-nightly / build-docker (push) Successful in 3m6s
This commit is contained in:
parent
00c379ed59
commit
55c3eec1c8
@ -26,8 +26,9 @@ func preConnect(c *fiber.Ctx) error {
|
||||
|
||||
var session models.AuthSession
|
||||
if err := database.C.Where(&models.AuthSession{
|
||||
AccountID: user.ID,
|
||||
ClientID: &client.ID,
|
||||
AccountID: user.ID,
|
||||
ClientID: &client.ID,
|
||||
LastGrantAt: nil,
|
||||
}).First(&session).Error; err == nil {
|
||||
if session.ExpiredAt != nil && session.ExpiredAt.Unix() < time.Now().Unix() {
|
||||
return c.JSON(fiber.Map{
|
||||
|
Loading…
Reference in New Issue
Block a user