# HG changeset patch # User paulb # Date 1211653606 0 # Node ID a9ae62c24e69272bbc5cc08eff5f32fd20ed0787 # Parent 6484f8ab022059fbceaad8c749bf5237f5b34426 [project @ 2008-05-24 18:26:46 by paulb] Fixed the login resource to look for the location of an application in the fields from the URL as well as in the form fields. diff -r 6484f8ab0220 -r a9ae62c24e69 XSLForms/Resources/Login.py --- a/XSLForms/Resources/Login.py Sun Feb 17 19:22:28 2008 +0000 +++ b/XSLForms/Resources/Login.py Sat May 24 18:26:46 2008 +0000 @@ -103,7 +103,11 @@ password = logelem.getAttribute("password") if self.authenticator.authenticate(trans, username, password): - app = parameters.get("app", [""])[0] + + # Read the application's location from form parameters and any + # fields in the URL. + + app = parameters.get("app", trans.get_fields_from_path().get("app", [""]))[0] # Either redirect or switch to the success template.