mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: make mail account password and refresh token text fields (#8107)
This commit is contained in:
parent
d8cfed5f5e
commit
159344f033
@ -8,7 +8,7 @@ class TestMigrateWorkflow(TestMigrations):
|
|||||||
dependencies = (
|
dependencies = (
|
||||||
(
|
(
|
||||||
"paperless_mail",
|
"paperless_mail",
|
||||||
"0027_mailaccount_expiration_mailaccount_account_type_and_more",
|
"0028_alter_mailaccount_password_and_more",
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -0,0 +1,31 @@
|
|||||||
|
# Generated by Django 5.1.1 on 2024-10-30 04:31
|
||||||
|
|
||||||
|
from django.db import migrations
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
dependencies = [
|
||||||
|
(
|
||||||
|
"paperless_mail",
|
||||||
|
"0027_mailaccount_expiration_mailaccount_account_type_and_more",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="mailaccount",
|
||||||
|
name="password",
|
||||||
|
field=models.TextField(verbose_name="password"),
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name="mailaccount",
|
||||||
|
name="refresh_token",
|
||||||
|
field=models.TextField(
|
||||||
|
blank=True,
|
||||||
|
help_text="The refresh token to use for token authentication e.g. with oauth2.",
|
||||||
|
null=True,
|
||||||
|
verbose_name="refresh token",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
@ -42,7 +42,7 @@ class MailAccount(document_models.ModelWithOwner):
|
|||||||
|
|
||||||
username = models.CharField(_("username"), max_length=256)
|
username = models.CharField(_("username"), max_length=256)
|
||||||
|
|
||||||
password = models.CharField(_("password"), max_length=3072)
|
password = models.TextField(_("password"))
|
||||||
|
|
||||||
is_token = models.BooleanField(_("Is token authentication"), default=False)
|
is_token = models.BooleanField(_("Is token authentication"), default=False)
|
||||||
|
|
||||||
@ -62,9 +62,8 @@ class MailAccount(document_models.ModelWithOwner):
|
|||||||
default=MailAccountType.IMAP,
|
default=MailAccountType.IMAP,
|
||||||
)
|
)
|
||||||
|
|
||||||
refresh_token = models.CharField(
|
refresh_token = models.TextField(
|
||||||
_("refresh token"),
|
_("refresh token"),
|
||||||
max_length=3072,
|
|
||||||
blank=True,
|
blank=True,
|
||||||
null=True,
|
null=True,
|
||||||
help_text=_(
|
help_text=_(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user