Implementado Solicitar Token de Seguridad (Web)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.1.2 on 2024-11-13 10:45
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('home', '0004_alter_accountactivation_salt_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='SecurityToken',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('user_id', models.IntegerField()),
|
||||
('token', models.CharField(max_length=6)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('expires_at', models.DateTimeField()),
|
||||
('ip_address', models.GenericIPAddressField()),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user