X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/4e1191300b4ebea295dee07769dc9da4e7149395..457864d91747076c222916d35071f53cb3f700f8:/contrib/gilbert/plugins/auth.py diff --git a/contrib/gilbert/plugins/auth.py b/contrib/gilbert/plugins/auth.py index 0daaf85..66cfebc 100644 --- a/contrib/gilbert/plugins/auth.py +++ b/contrib/gilbert/plugins/auth.py @@ -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) - try: + if form.is_valid(): form.save() return True, None - except: + else: return False, form.errors @ext_method