(mailboxes) remove '+' from valid special caracters

We previously accepted '+' as a special caracter during mailbox creation.
We now remove it, as this caracter has a very special meaning and it wouldn't
make sense to create a mail using it.
This commit is contained in:
Marie PUPO JEAMMET
2024-08-27 18:05:46 +02:00
committed by Marie
parent e04a994d37
commit 93681b0030
2 changed files with 6 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ class Mailbox(BaseModel):
max_length=150,
null=False,
blank=False,
validators=[validators.RegexValidator(regex="^[a-zA-Z0-9_.+-]+$")],
validators=[validators.RegexValidator(regex="^[a-zA-Z0-9_.-]+$")],
)
domain = models.ForeignKey(
MailDomain,