🐛 Fix pickup policy picked granted session issue
All checks were successful
release-nightly / build-docker (push) Successful in 3m25s
All checks were successful
release-nightly / build-docker (push) Successful in 3m25s
This commit is contained in:
parent
ecda5bd59b
commit
2daa85daf3
@ -28,8 +28,7 @@ func preConnect(c *fiber.Ctx) error {
|
|||||||
if err := database.C.Where(&models.AuthSession{
|
if err := database.C.Where(&models.AuthSession{
|
||||||
AccountID: user.ID,
|
AccountID: user.ID,
|
||||||
ClientID: &client.ID,
|
ClientID: &client.ID,
|
||||||
LastGrantAt: nil,
|
}).Where("last_grant_at IS NULL").First(&session).Error; err == nil {
|
||||||
}).First(&session).Error; err == nil {
|
|
||||||
if session.ExpiredAt != nil && session.ExpiredAt.Unix() < time.Now().Unix() {
|
if session.ExpiredAt != nil && session.ExpiredAt.Unix() < time.Now().Unix() {
|
||||||
return c.JSON(fiber.Map{
|
return c.JSON(fiber.Map{
|
||||||
"client": client,
|
"client": client,
|
||||||
|
@ -128,7 +128,7 @@ export default function DashboardPage() {
|
|||||||
<div id="data-area" class="mt-5 shadow">
|
<div id="data-area" class="mt-5 shadow">
|
||||||
<div class="join join-vertical w-full">
|
<div class="join join-vertical w-full">
|
||||||
|
|
||||||
<details class="collapse collapse-plus join-item border border-base-300">
|
<details class="collapse collapse-plus join-item">
|
||||||
<summary class="collapse-title text-lg font-medium">
|
<summary class="collapse-title text-lg font-medium">
|
||||||
Challenges
|
Challenges
|
||||||
</summary>
|
</summary>
|
||||||
@ -164,7 +164,7 @@ export default function DashboardPage() {
|
|||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details class="collapse collapse-plus join-item border border-base-300">
|
<details class="collapse collapse-plus join-item">
|
||||||
<summary class="collapse-title text-lg font-medium">
|
<summary class="collapse-title text-lg font-medium">
|
||||||
Sessions
|
Sessions
|
||||||
</summary>
|
</summary>
|
||||||
@ -203,7 +203,7 @@ export default function DashboardPage() {
|
|||||||
</div>
|
</div>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details class="collapse collapse-plus join-item border border-base-300">
|
<details class="collapse collapse-plus join-item">
|
||||||
<summary class="collapse-title text-lg font-medium">
|
<summary class="collapse-title text-lg font-medium">
|
||||||
Events
|
Events
|
||||||
</summary>
|
</summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user