This commit is contained in:
yumoqing 2026-04-26 15:01:05 +08:00
parent afceb713b7
commit 59f68c3141

View File

@ -44,7 +44,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
if len(recs) == 1:
r = recs[0]
# Update last_login atomically (standard SQL, no DB-specific functions)
now_str = curDateString('%Y-%m-%d %H:%M:%S')
now_str = curDateString()
await sor.sqlExe("""
UPDATE users
SET last_login = ${now}$, login_fail_count = 0,