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:
parent
e48c6c2aa9
commit
b91d51486c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue