mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
* Working configuration file example
* A username can now be modified see #204
This commit is contained in:
@@ -296,6 +296,7 @@ class AccountFormGeneral(forms.ModelForm):
|
||||
|
||||
def save(self, commit=True):
|
||||
account = super(AccountFormGeneral, self).save(commit=False)
|
||||
account.username = self.cleaned_data["username"]
|
||||
if commit:
|
||||
account.save()
|
||||
role = None
|
||||
|
||||
@@ -59,7 +59,6 @@ class IdentitiesTable(tables.Table):
|
||||
)
|
||||
name_or_rcpt = tables.Column("name_or_rcpt", label=ugettext_lazy("Fullname/Recipient"))
|
||||
actions = tables.ActionColumn("actions", label=ugettext_lazy("Actions"),
|
||||
width="70px", align="center",
|
||||
defvalue=identity_actions)
|
||||
|
||||
cols_order = ["identity", "name_or_rcpt", "actions"]
|
||||
|
||||
+1
-1
@@ -128,8 +128,8 @@ INSTALLED_APPS = (
|
||||
)
|
||||
|
||||
AUTHENTICATION_BACKENDS = (
|
||||
'modoboa.lib.authbackends.SimpleBackend',
|
||||
'django.contrib.auth.backends.ModelBackend',
|
||||
'modoboa.lib.authbackends.SimpleBackend'
|
||||
)
|
||||
|
||||
#SESSION_COOKIE_AGE = 300
|
||||
|
||||
Reference in New Issue
Block a user