online-judge/judge/migrations/0120_totp_no_reuse.py
Quantum c189db30f5 Prevent the reuse of TOTP authentication codes
We store the timecodes in an IntegerField, which is guaranteed to support
values up to 2147483647. This is okay because timecodes are Unix time
divided by 30, so it supports values up to the year 4011.

This fixes #1692.
2021-06-16 20:46:01 -04:00

19 lines
432 B
Python

# Generated by Django 2.2.24 on 2021-06-06 23:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('judge', '0119_hide_problem_authors'),
]
operations = [
migrations.AddField(
model_name='profile',
name='last_totp_timecode',
field=models.IntegerField(default=0, verbose_name='last TOTP timecode'),
),
]