Commit d763852c authored by lkleverman's avatar lkleverman

status code change for auth

parent e277feab
......@@ -35,7 +35,7 @@ async def basic_auth(self):
)
res = json.loads(r.text)
if r.status_code == 201:
if r.status_code == 200:
if res and "_id" in res:
user, created = await db.get_or_create(User, name=res["_id"])
if 'access' in res and 'admin' in res['access'] and res['access']['admin'] == 1:
......
......@@ -56,7 +56,7 @@ async def token_ctep_auth(self):
)
res = json.loads(r.text)
if r.status_code == 201:
if r.status_code == 200:
if res and "_id" in res:
user, created = await db.get_or_create(User, name=res["_id"])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment