diff --git a/castle/cms/authentication.py b/castle/cms/authentication.py index 685ed8a9e..e4c8e865d 100644 --- a/castle/cms/authentication.py +++ b/castle/cms/authentication.py @@ -100,7 +100,8 @@ def request_form_url(self): url = '/@@request-form' if not self.is_zope_root and self.registry: url = self.registry.get('plone.request_access_form_path', '/@@request-form') - return url + base_url = api.portal.get().absolute_url() + return ''.join([base_url, url]) @property def expire(self): diff --git a/castle/cms/browser/security/requestaccess.py b/castle/cms/browser/security/requestaccess.py index 94e06fde0..59f188324 100644 --- a/castle/cms/browser/security/requestaccess.py +++ b/castle/cms/browser/security/requestaccess.py @@ -98,7 +98,6 @@ def request_access(self): logging.error("problem sending request access form", exc_info=True) self.request.response.setStatus(400) - def request_info(self): # we only send data that was requested to actually be sent to prevent exploitation # of the form as much as possible diff --git a/castle/cms/browser/security/templates/request-form.pt b/castle/cms/browser/security/templates/request-form.pt index 8cd6cfb46..802262348 100644 --- a/castle/cms/browser/security/templates/request-form.pt +++ b/castle/cms/browser/security/templates/request-form.pt @@ -42,20 +42,11 @@