feat: migrate User model with kdf_salt field and update is_active default status

This commit is contained in:
Your Name
2026-04-10 10:20:27 +05:30
parent d74fcc0b9c
commit f0af27f15d
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,22 @@
# Generated by Django 6.0.4 on 2026-04-10 04:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0001_initial"),
]
operations = [
migrations.AddField(
model_name="user",
name="kdf_salt",
field=models.CharField(blank=True, max_length=128, null=True),
),
migrations.AlterField(
model_name="user",
name="is_active",
field=models.BooleanField(default=False),
),
]
+2
View File
@@ -41,6 +41,8 @@ class User(AbstractUser):
full_name = models.CharField(max_length=100) full_name = models.CharField(max_length=100)
email = models.EmailField(_("email address"), unique=True) email = models.EmailField(_("email address"), unique=True)
# salt for client-side key derivation
kdf_salt = models.CharField(max_length=128, blank=True, null=True) kdf_salt = models.CharField(max_length=128, blank=True, null=True)
# Default is False to enforce email verification # Default is False to enforce email verification