add password_hash field

This commit is contained in:
Eduardo Silva
2026-03-14 11:14:26 -03:00
parent f8596bc8ff
commit 10187372f3
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.2.12 on 2026-03-14 14:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gatekeeper', '0005_authmethod_totp_before_auth'),
]
operations = [
migrations.AddField(
model_name='gatekeeperuser',
name='password_hash',
field=models.CharField(blank=True, max_length=128, null=True),
),
]

View File

@@ -67,6 +67,7 @@ class GatekeeperUser(models.Model):
username = models.SlugField(max_length=64, unique=True) username = models.SlugField(max_length=64, unique=True)
email = models.EmailField(unique=True) email = models.EmailField(unique=True)
password = models.CharField(blank=True, max_length=128, help_text=_("Password for local authentication (leave blank if not using)")) password = models.CharField(blank=True, max_length=128, help_text=_("Password for local authentication (leave blank if not using)"))
password_hash = models.CharField(blank=True, null=True, max_length=128)
totp_secret = models.CharField(max_length=255, blank=True, help_text=_("Per-user TOTP secret key")) totp_secret = models.CharField(max_length=255, blank=True, help_text=_("Per-user TOTP secret key"))
created = models.DateTimeField(auto_now_add=True) created = models.DateTimeField(auto_now_add=True)