Don't update the password if not needed.

fixes #420
This commit is contained in:
Antoine Nguyen
2013-05-21 19:28:35 +02:00
parent 28190156b5
commit 3be42f049f
+1 -1
View File
@@ -92,7 +92,7 @@ def profile(request, tplname='userprefs/profile.html'):
)
if form.is_valid():
form.save()
if update_password:
if update_password and form.cleaned_data["confirmation"] != "":
request.session["password"] = encrypt(form.cleaned_data["confirmation"])
return ajax_simple_response(dict(
status="ok", respmsg=_("Profile updated")