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/03/25 15:27:41 UTC
[43/50] git commit: [#3815] Render return_to field on login form
[#3815] Render return_to field on login form
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/0bbf17d7
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0bbf17d7
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0bbf17d7
Branch: refs/heads/db/5995
Commit: 0bbf17d749799fafe3df4de0c154d4bd34a99626
Parents: c7fe047
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Tue Mar 18 21:33:12 2014 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Thu Mar 20 18:43:46 2014 +0000
----------------------------------------------------------------------
Allura/allura/lib/widgets/auth_widgets.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/0bbf17d7/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 f97c976..034da45 100644
--- a/Allura/allura/lib/widgets/auth_widgets.py
+++ b/Allura/allura/lib/widgets/auth_widgets.py
@@ -37,7 +37,8 @@ class LoginForm(ForgeForm):
def fields(self):
fields = [
ew.TextField(name='username', label='Username'),
- ew.PasswordField(name='password', label='Password')
+ ew.PasswordField(name='password', label='Password'),
+ ew.HiddenField(name='return_to'),
]
if plugin.AuthenticationProvider.get(request).forgotten_password_process:
# only show link if auth provider has method of recovering password
@@ -45,9 +46,6 @@ class LoginForm(ForgeForm):
ew.HTMLField(name='link', text='<a href="forgotten_password">Forgot password?</a>'))
return fields
- class hidden_fields(ew_core.NameList):
- return_to = ew.HiddenField()
-
@validator
def validate(self, value, state=None):
try: