This commit is contained in:
yumoqing 2025-07-23 16:45:12 +08:00
parent 85e9bb9466
commit 6b08a63eb8

View File

@ -110,6 +110,7 @@ async def basic_auth(sor, auth):
recs = await sor.sqlExe(sql, {'username':username,'password':password}) recs = await sor.sqlExe(sql, {'username':username,'password':password})
if len(recs) < 1: if len(recs) < 1:
return None return None
await user_login(request, recs[0].id,
return recs[0].id return recs[0].id
async def bearer_auth(sor, auth): async def bearer_auth(sor, auth):