From b91d51486c531131e886997f09eeb796473c961c Mon Sep 17 00:00:00 2001 From: Kraiem Taha Yassine Date: Thu, 5 Aug 2021 16:40:47 +0200 Subject: [PATCH] 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 --- api/chalicelib/core/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/users.py b/api/chalicelib/core/users.py index a571607e8..252d94bfc 100644 --- a/api/chalicelib/core/users.py +++ b/api/chalicelib/core/users.py @@ -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)