You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/06/30 22:24:59 UTC

[2/2] git commit: [#7481] return_to might not be present (really just tests I think)

[#7481] return_to might not be present (really just tests I think)


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

Branch: refs/heads/master
Commit: 5b039fb797104a69dfeb214e84680271099e04fe
Parents: 2305a5c
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Mon Jun 30 20:24:46 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon Jun 30 20:24:46 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/allura/blob/5b039fb7/Allura/allura/lib/widgets/auth_widgets.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/widgets/auth_widgets.py b/Allura/allura/lib/widgets/auth_widgets.py
index e8ff4a3..b984e6f 100644
--- a/Allura/allura/lib/widgets/auth_widgets.py
+++ b/Allura/allura/lib/widgets/auth_widgets.py
@@ -55,7 +55,7 @@ class LoginForm(ForgeForm):
             msg = 'Invalid login'
             raise Invalid(
                 msg,
-                dict(username=value['username'], return_to=value['return_to']),
+                dict(username=value['username'], return_to=value.get('return_to')),
                 None)
         return value