incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [13/17] git commit: [#3815] Render return_to field on login form
Date Thu, 20 Mar 2014 18:46:46 GMT
[#3815] Render return_to field on login form


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

Branch: refs/heads/cj/6701
Commit: 0bbf17d749799fafe3df4de0c154d4bd34a99626
Parents: c7fe047
Author: Cory Johns <cjohns@slashdotmedia.com>
Authored: Tue Mar 18 21:33:12 2014 +0000
Committer: Cory Johns <cjohns@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/incubator-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:


Mime
View raw message