From 3763dca4a689bc475ab3ca50bc692dc7bb63a9db Mon Sep 17 00:00:00 2001 From: Tyler Hallada Date: Thu, 20 Dec 2012 22:17:49 -0500 Subject: [PATCH] Return error if confirm_password is filled but not new_password (imported from commit c58ca8d2f5592c4cf062b963f3cca6673242419e) --- zephyr/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/views.py b/zephyr/views.py index c0d88e1a97..ec348b77e3 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -885,7 +885,7 @@ def json_change_settings(request, user_profile, full_name=POST, # because browsers POST nothing for an unchecked checkbox enable_desktop_notifications=POST(converter=lambda x: x == "on", default=False)): - if new_password != "": + if new_password != "" or confirm_password != "": if new_password != confirm_password: return json_error("New password must match confirmation password!") if not authenticate(username=user_profile.user.email, password=old_password):