From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Thu, 20 Apr 2023 15:09:09 +0000 (-0700) Subject: To support token auth better, increase the password field (more of a double duty... X-Git-Tag: v1.14.0~1^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=829a693128e68165a9c6f81cb2ff2d7a47d8a4a5;p=thirdparty%2Fpaperless-ngx.git To support token auth better, increase the password field (more of a double duty) to be 2048 chars --- 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 0000000000..2c0f68065e --- /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 c0dc1916a5..a9165b2486 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)