From 85c27ff0f5e7b536475e3ef1f5aecddbbb1a3e01 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Mon, 13 Jun 2022 15:59:54 +0200 Subject: [PATCH] feat(api): fixed login --- 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 8eb08bd35..794121064 100644 --- a/api/chalicelib/core/users.py +++ b/api/chalicelib/core/users.py @@ -583,7 +583,7 @@ def authenticate(email, password, for_change_password=False, for_plugin=False): SET jwt_iat = timezone('utc'::text, now()) WHERE user_id = %(user_id)s RETURNING jwt_iat;""", - {"user_id": r["id"]}) + {"user_id": r["userId"]}) cur.execute(query) return { "jwt": authorizers.generate_jwt(r['userId'], r['tenantId'],