bugfix
This commit is contained in:
parent
7b36e2d159
commit
90e9e943b2
@ -44,7 +44,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
|
|||||||
if len(recs) == 1:
|
if len(recs) == 1:
|
||||||
r = recs[0]
|
r = recs[0]
|
||||||
# Update last_login atomically (standard SQL, no DB-specific functions)
|
# Update last_login atomically (standard SQL, no DB-specific functions)
|
||||||
now_str = curDateString()
|
now_str = timestampstr()
|
||||||
await sor.sqlExe("""
|
await sor.sqlExe("""
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET last_login = ${now}$, login_fail_count = 0,
|
SET last_login = ${now}$, login_fail_count = 0,
|
||||||
@ -61,7 +61,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
|
|||||||
if params_kw.selected_id:
|
if params_kw.selected_id:
|
||||||
for r in recs:
|
for r in recs:
|
||||||
if r.id == params_kw.selected_id:
|
if r.id == params_kw.selected_id:
|
||||||
now_str = curDateString()
|
now_str = timestampstr()
|
||||||
await sor.sqlExe("""
|
await sor.sqlExe("""
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET last_login = ${now}$, login_fail_count = 0,
|
SET last_login = ${now}$, login_fail_count = 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user