diff --git a/rbac/check_perm.py b/rbac/check_perm.py index c0d9ab0..90b5a2e 100644 --- a/rbac/check_perm.py +++ b/rbac/check_perm.py @@ -110,6 +110,7 @@ async def basic_auth(sor, auth): recs = await sor.sqlExe(sql, {'username':username,'password':password}) if len(recs) < 1: return None + await user_login(request, recs[0].id, return recs[0].id async def bearer_auth(sor, auth):