From 5a6e4e13076afddeeec31259eaee7c5af0defb2d Mon Sep 17 00:00:00 2001 From: Rodney Ewing Date: Fri, 12 Jul 2013 12:27:41 -0700 Subject: [PATCH] check for form.password in the off chance that a user is logged in and the server switches the authentication method from basic_auth to openid. --- mediagoblin/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py index 82cec8da..53a63cd0 100644 --- a/mediagoblin/edit/views.py +++ b/mediagoblin/edit/views.py @@ -444,7 +444,7 @@ def change_email(request): _('Sorry, a user with that email address' ' already exists.')) - if user.pw_hash and not auth.check_password( + if form.password and user.pw_hash and not auth.check_password( form.password.data, user.pw_hash): form.password.errors.append( _('Wrong password')) -- 2.25.1