mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-09 11:46:49 +00:00
The API Tokens tab gets a "Last used" column, so an unused token can be told from one a script still needs. The token's last use is written when it authenticates, at most once a minute (accounts.auth.TokenAuthentication, knox's class with that one addition; the API schema describes it as knox's). A user has at most ten tokens; a new one is refused until one is deleted. Expired tokens do not count, and are deleted when a new token is made.
18 lines
420 B
Python
18 lines
420 B
Python
# Generated by Django 5.2.18 on 2026-10-24 20:27
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('accounts', '0009_api_token'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='apitoken',
|
|
name='last_used',
|
|
field=models.DateTimeField(blank=True, null=True, verbose_name='last used'),
|
|
),
|
|
]
|