X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/f314a8ddceb543e2bb4711d50bdd2060452689b1..bf8e7237a705e2db952d94e7acde3b9f7a99ef91:/contrib/gilbert/plugins/auth.py diff --git a/contrib/gilbert/plugins/auth.py b/contrib/gilbert/plugins/auth.py index e964559..66cfebc 100644 --- a/contrib/gilbert/plugins/auth.py +++ b/contrib/gilbert/plugins/auth.py @@ -18,7 +18,7 @@ class Auth(Plugin): def icon_names(self): return super(Auth, self).icon_names + [ 'user-silhouette', - 'switch', + 'mask', 'key--pencil', 'door-open-out', ] @@ -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