fix api secret generation
This commit is contained in:
parent
0ff2bbd1fa
commit
60536147d4
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ def user_detail(request, user): # todo: make class based view
|
|||
|
||||
with transaction.atomic():
|
||||
if api_secret_action in ('generate', 'regenerate'):
|
||||
api_secret = '%d-%s' % (user.pk, get_random_string(64, string.ascii_letters+string.digits))
|
||||
api_secret = '%d-%s' % (user.pk, get_random_string(62, string.ascii_letters+string.digits))
|
||||
permissions.api_secret = api_secret
|
||||
permissions.save()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue