]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
To support token auth better, increase the password field (more of a double duty...
authorTrenton H <797416+stumpylog@users.noreply.github.com>
Thu, 20 Apr 2023 15:09:09 +0000 (08:09 -0700)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Thu, 20 Apr 2023 21:43:19 +0000 (14:43 -0700)
src/paperless_mail/migrations/0021_alter_mailaccount_password.py [new file with mode: 0644]
src/paperless_mail/models.py

diff --git a/src/paperless_mail/migrations/0021_alter_mailaccount_password.py b/src/paperless_mail/migrations/0021_alter_mailaccount_password.py
new file mode 100644 (file)
index 0000000..2c0f680
--- /dev/null
@@ -0,0 +1,17 @@
+# Generated by Django 4.1.7 on 2023-04-20 15:03
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        ("paperless_mail", "0020_mailaccount_is_token"),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name="mailaccount",
+            name="password",
+            field=models.CharField(max_length=2048, verbose_name="password"),
+        ),
+    ]
index c0dc1916a5c408e15b531086fac0dc99bb16c6a2..a9165b2486e13028cd42fd118ead6e915a3905a2 100644 (file)
@@ -36,7 +36,7 @@ class MailAccount(document_models.ModelWithOwner):
 
     username = models.CharField(_("username"), max_length=256)
 
-    password = models.CharField(_("password"), max_length=256)
+    password = models.CharField(_("password"), max_length=2048)
 
     is_token = models.BooleanField(_("Is token authentication"), default=False)