Fixed token length

This commit is contained in:
Agate 2020-08-19 20:12:59 +02:00
parent f15f9b9d5f
commit 6fc08aa061
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class ApplicationViewSet(
client_type=models.Application.CLIENT_CONFIDENTIAL,
authorization_grant_type=models.Application.GRANT_AUTHORIZATION_CODE,
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):