mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 03:29:23 +02:00
Fixed token length
This commit is contained in:
parent
f15f9b9d5f
commit
6fc08aa061
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class ApplicationViewSet(
|
||||||
client_type=models.Application.CLIENT_CONFIDENTIAL,
|
client_type=models.Application.CLIENT_CONFIDENTIAL,
|
||||||
authorization_grant_type=models.Application.GRANT_AUTHORIZATION_CODE,
|
authorization_grant_type=models.Application.GRANT_AUTHORIZATION_CODE,
|
||||||
user=self.request.user if self.request.user.is_authenticated else None,
|
user=self.request.user if self.request.user.is_authenticated else None,
|
||||||
token=models.get_token(15) if self.request.user.is_authenticated else None,
|
token=models.get_token() if self.request.user.is_authenticated else None,
|
||||||
)
|
)
|
||||||
|
|
||||||
def get_serializer(self, *args, **kwargs):
|
def get_serializer(self, *args, **kwargs):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue