mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-15 09:23:58 +01:00
Various changes. Migration to the new layout is now ok.
This commit is contained in:
@@ -49,7 +49,7 @@ class ProfileForm(forms.ModelForm):
|
||||
if self.cleaned_data["oldpassword"] == "":
|
||||
return self.cleaned_data["oldpassword"]
|
||||
|
||||
if parameters.get_admin("AUTHENTICATION_TYPE", app="admin") != "local":
|
||||
if parameters.get_admin("AUTHENTICATION_TYPE") != "local":
|
||||
return self.cleaned_data["oldpassword"]
|
||||
|
||||
if not self.instance.check_password(self.cleaned_data["oldpassword"]):
|
||||
|
||||
Reference in New Issue
Block a user