feat(api): fixed login
This commit is contained in:
parent
7d4596c074
commit
c68edbc705
1 changed files with 1 additions and 1 deletions
|
|
@ -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'],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue