From 3b9a43fc7a176cc2092e38369c14115532cef771 Mon Sep 17 00:00:00 2001 From: Nikolai R Kristiansen Date: Wed, 9 Sep 2020 23:42:58 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BAllow=20longer=20password=20hashes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dpdapi/migrations/0003_auto_20200909_2342.py | 18 ++++++++++++++++++ dpdapi/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dpdapi/migrations/0003_auto_20200909_2342.py diff --git a/dpdapi/migrations/0003_auto_20200909_2342.py b/dpdapi/migrations/0003_auto_20200909_2342.py new file mode 100644 index 0000000..c74d499 --- /dev/null +++ b/dpdapi/migrations/0003_auto_20200909_2342.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.16 on 2020-09-09 21:42 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('dpdapi', '0002_auto_20150118_1638'), + ] + + operations = [ + migrations.AlterField( + model_name='user', + name='password', + field=models.CharField(max_length=512), + ), + ] diff --git a/dpdapi/models.py b/dpdapi/models.py index 2a027f5..aa8d721 100644 --- a/dpdapi/models.py +++ b/dpdapi/models.py @@ -43,7 +43,7 @@ class Domain(BaseModel): class User(BaseModel): email = models.EmailField(max_length=254, unique=True) - password = models.CharField(max_length=109) + password = models.CharField(max_length=512) domain = models.ForeignKey('dpdapi.Domain', models.CASCADE) def __str__(self):