mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
Merge branch '1.2.x'
This commit is contained in:
@@ -272,7 +272,7 @@ class AccountFormMail(forms.Form, DynamicForm):
|
||||
continue
|
||||
if value == "":
|
||||
continue
|
||||
aliases.append(value)
|
||||
aliases.append(value.lower())
|
||||
|
||||
for alias in self.mb.alias_set.all():
|
||||
if alias.full_address not in aliases:
|
||||
|
||||
@@ -82,7 +82,7 @@ class AliasForm(forms.ModelForm, DynamicForm):
|
||||
raise forms.ValidationError(
|
||||
_("You don't have access to this domain")
|
||||
)
|
||||
return self.cleaned_data["email"]
|
||||
return self.cleaned_data["email"].lower()
|
||||
|
||||
def set_recipients(self):
|
||||
"""Recipients dispatching
|
||||
|
||||
Reference in New Issue
Block a user