You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
获取Token后Token为无效值因为执行的SQL为
select * from personal_access_tokens where last_used_at >= '2024-09-27 23:54:35' and personal_access_tokens.id = 76 limit 1
而personal_access_tokens表中的last_used_at 字段值 IS NULL
The text was updated successfully, but these errors were encountered:
描述问题:
最新版本新增了判断Token使用有效期的逻辑,但是登录成功后last_used_at值为空,导致登录后Token无效
截图或视频:
如何复现(请务必完整填写下面内容):
owl-admin 版本是什么?
v4.0.1
PHP & Laravel 版本是什么?
php8.2 & laravel: 11.25.0
Linux + Centos7.9
.env 设置
token 有效期 (分钟), 为空则不会过期
ADMIN_TOKEN_EXPIRATION=1440
请求登录接口
/admin-api/login
{
"username": "xxxxx",
"password": "xxxxx",
"remember": true,
"captcha": "4GNZ",
"sys_captcha": "captcha:66f82631cc0ee"
}
获取Token后Token为无效值因为执行的SQL为
select * from
personal_access_tokens
wherelast_used_at
>= '2024-09-27 23:54:35' andpersonal_access_tokens
.id
= 76 limit 1而
personal_access_tokens
表中的last_used_at
字段值 IS NULLThe text was updated successfully, but these errors were encountered: