Api changes (#126)

* feat(api): include smtp flag in login response

* feat(api): changed smtp flag in login response

* feat(api): owner role is not allowed to change

* feat(api): changed chalice template

* feat(api): reset password invitation|token

* feat(api): fixed invitation token
This commit is contained in:
Kraiem Taha Yassine 2021-08-05 16:40:47 +02:00 committed by GitHub
parent e48c6c2aa9
commit b91d51486c
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)