Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

To support token auth better, increase the password field (more of a double duty) to be 2048 chars

Trenton H829a693128e6
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
index 000000000..2c0f68065
--- /dev/null
+++ b/src/paperless_mail/migrations/0021_alter_mailaccount_password.py
@@ -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"),
+ ),
+ ]
diff --git a/src/paperless_mail/models.py b/src/paperless_mail/models.py
index c0dc1916a..a9165b248 100644
--- a/src/paperless_mail/models.py
+++ b/src/paperless_mail/models.py
@@ -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)