Improved reporting of deletion consequences. Removed vestigial "Advanced" menu.
[philo.git] / contrib / gilbert / plugins / auth.py
index 0daaf85..66cfebc 100644 (file)
@@ -40,10 +40,10 @@ class Auth(Plugin):
        @ext_method(form_handler=True)
        def save_passwd_form(self, request):
                form = PasswordChangeForm(request.user, data=request.POST)
        @ext_method(form_handler=True)
        def save_passwd_form(self, request):
                form = PasswordChangeForm(request.user, data=request.POST)
-               try:
+               if form.is_valid():
                        form.save()
                        return True, None
                        form.save()
                        return True, None
-               except:
+               else:
                        return False, form.errors
        
        @ext_method
                        return False, form.errors
        
        @ext_method