Merge pull request #127 from openreplay/dev

Api changes (#126)
This commit is contained in:
Kraiem Taha Yassine 2021-08-05 16:43:15 +02:00 committed by GitHub
commit e08ad683d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -488,7 +488,7 @@ def get_by_invitation_token(token, pass_token=None):
FROM public.users INNER JOIN public.basic_authentication USING(user_id)
WHERE invitation_token = %(token)s {"AND change_pwd_token = %(pass_token)s" if pass_token else ""}
LIMIT 1;""",
{"token": token, "pass_token": token})
{"token": token, "pass_token": pass_token})
)
r = cur.fetchone()
return helper.dict_to_camel_case(r)