mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-02 12:13:54 +01:00
Fixed broken code (was not working since the last big refactoring I did in the admin code).
fix #133
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ def changepassword(request, tplname="userprefs/chpassword.html"):
|
||||
else:
|
||||
target.set_password(request.POST["confirmation"])
|
||||
target.save()
|
||||
return ajax_response(request)
|
||||
return ajax_response(request, respmsg=_("Password changed"))
|
||||
return ajax_response(request, status="ko", template=tplname, form=form, error=error)
|
||||
|
||||
form = ChangePasswordForm(target)
|
||||
|
||||
Reference in New Issue
Block a user