aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-07-12 12:27:41 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-20 08:25:45 -0700
commit5a6e4e13076afddeeec31259eaee7c5af0defb2d (patch)
tree93841bdb88a5fc9aab7f72cf49fa11aba13e3b1c /mediagoblin/edit
parent402f43601164e26390cf7c78a383537eb009e499 (diff)
downloadmediagoblin-5a6e4e13076afddeeec31259eaee7c5af0defb2d.tar.lz
mediagoblin-5a6e4e13076afddeeec31259eaee7c5af0defb2d.tar.xz
mediagoblin-5a6e4e13076afddeeec31259eaee7c5af0defb2d.zip
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.
Diffstat (limited to 'mediagoblin/edit')
-rw-r--r--mediagoblin/edit/views.py2
1 files changed, 1 insertions, 1 deletions
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'))