allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/2] allura git commit: [#8127] don't error if somehow password field isn't there to pop
Date Thu, 15 Sep 2016 14:28:48 GMT
[#8127] don't error if somehow password field isn't there to pop


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/c3f8c772
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/c3f8c772
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/c3f8c772

Branch: refs/heads/master
Commit: c3f8c772d836988037a348f51df3d2a7e66a46e5
Parents: 94ae898
Author: Dave Brondsema <dave@brondsema.net>
Authored: Fri Sep 9 15:26:43 2016 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Thu Sep 15 10:28:19 2016 -0400

----------------------------------------------------------------------
 Allura/allura/lib/decorators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/c3f8c772/Allura/allura/lib/decorators.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/decorators.py b/Allura/allura/lib/decorators.py
index 7249e7c..70e5833 100644
--- a/Allura/allura/lib/decorators.py
+++ b/Allura/allura/lib/decorators.py
@@ -121,7 +121,7 @@ def reconfirm_auth(func, *args, **kwargs):
         if AuthenticationProvider.get(request).validate_password(c.user, request.POST['password']):
             session['auth-reconfirmed'] = datetime.utcnow()
             session.save()
-            kwargs.pop('password')
+            kwargs.pop('password', None)
         else:
             c.form_errors['password'] = 'Invalid password.'
 


Mime
View raw message