##// END OF EJS Templates
allow login_handler to be undefined...
Min RK -
Show More
@@ -95,7 +95,7 b' class AuthenticatedHandler(web.RequestHandler):'
95 95 @property
96 96 def login_handler(self):
97 97 """Return the login handler for this application."""
98 return self.settings['login_handler_class']
98 return self.settings.get('login_handler_class', None)
99 99
100 100 @property
101 101 def login_available(self):
@@ -105,6 +105,8 b' class AuthenticatedHandler(web.RequestHandler):'
105 105 whether the user is already logged in or not.
106 106
107 107 """
108 if self.login_handler is None:
109 return False
108 110 return bool(self.login_handler.login_available(self.settings))
109 111
110 112
General Comments 0
You need to be logged in to leave comments. Login now