mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
API: return user_id as int, not str
This commit is contained in:
parent
75d5c821a0
commit
41aa128b67
1 changed files with 1 additions and 1 deletions
|
@ -1296,7 +1296,7 @@ def authorise_api_user(auth, return_type='id'):
|
||||||
if return_type == 'model':
|
if return_type == 'model':
|
||||||
return user
|
return user
|
||||||
else:
|
else:
|
||||||
return user_id
|
return user.id
|
||||||
else:
|
else:
|
||||||
raise Exception('incorrect_login')
|
raise Exception('incorrect_login')
|
||||||
except jwt.InvalidTokenError:
|
except jwt.InvalidTokenError:
|
||||||
|
|
Loading…
Add table
Reference in a new issue