Fix: make mail account password and refresh token text fields (#8107)

This commit is contained in:
shamoon
2024-10-29 21:54:47 -07:00
committed by GitHub
parent d8cfed5f5e
commit 159344f033
3 changed files with 34 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ class MailAccount(document_models.ModelWithOwner):
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)
@@ -62,9 +62,8 @@ class MailAccount(document_models.ModelWithOwner):
default=MailAccountType.IMAP,
)
refresh_token = models.CharField(
refresh_token = models.TextField(
_("refresh token"),
max_length=3072,
blank=True,
null=True,
help_text=_(