mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
fix: [user] fix get user token #163
This commit is contained in:
parent
b38819fdaa
commit
ee76d20277
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ def get_user_passwd_hash(user_id):
|
|||
return r_serv_db.hget('ail:users:all', user_id)
|
||||
|
||||
def get_user_token(user_id):
|
||||
return r_serv_db.hget(f'ail:users:metadata:{user_id}', 'token')
|
||||
return r_serv_db.hget(f'ail:user:metadata:{user_id}', 'token')
|
||||
|
||||
def get_token_user(token):
|
||||
return r_serv_db.hget('ail:users:tokens', token)
|
||||
|
|
Loading…
Reference in a new issue