diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/application.py | 3 | ||||
-rw-r--r-- | service/pixelated/resources/login_resource.py | 3 |
2 files changed, 1 insertions, 5 deletions
diff --git a/service/pixelated/application.py b/service/pixelated/application.py index 7e83299a..fe74790b 100644 --- a/service/pixelated/application.py +++ b/service/pixelated/application.py @@ -172,13 +172,12 @@ def set_up_protected_resources(root_resource, provider, services_factory, checke if not checker: checker = LeapPasswordChecker(provider) session_checker = SessionChecker(services_factory) - anonymous_resource = LoginResource(services_factory, disclaimer_banner=banner) realm = PixelatedRealm() _portal = portal.Portal(realm, [checker, session_checker, AllowAnonymousAccess()]) + anonymous_resource = LoginResource(services_factory, _portal, disclaimer_banner=banner) protected_resource = PixelatedAuthSessionWrapper(_portal, root_resource, anonymous_resource, []) - anonymous_resource.set_portal(_portal) root_resource.initialize(_portal, disclaimer_banner=banner) return protected_resource diff --git a/service/pixelated/resources/login_resource.py b/service/pixelated/resources/login_resource.py index 34cc7dd0..e19f9038 100644 --- a/service/pixelated/resources/login_resource.py +++ b/service/pixelated/resources/login_resource.py @@ -114,9 +114,6 @@ class LoginResource(BaseResource): with open(os.path.join(self._startup_folder, 'Interstitial.html')) as f: self.interstitial = f.read() - def set_portal(self, portal): - self._portal = portal - def getChild(self, path, request): if path == '': return self |