1.1 --- a/WebStack/Resources/LoginRedirect.py Sun May 30 17:21:51 2004 +0000
1.2 +++ b/WebStack/Resources/LoginRedirect.py Sun May 30 17:44:17 2004 +0000
1.3 @@ -1,6 +1,6 @@
1.4 #!/usr/bin/env python
1.5
1.6 -"Login redirection."
1.7 +"Login redirection resources, sending unauthenticated users to a login screen URL."
1.8
1.9 from WebStack.Helpers.Auth import get_token
1.10 import WebStack.Generic
1.11 @@ -134,7 +134,10 @@
1.12
1.13 def authenticate(self, trans):
1.14
1.15 - "Authenticate the originator of 'trans', updating the object if successful."
1.16 + """
1.17 + Authenticate the originator of 'trans', updating the object if successful and
1.18 + returning 1 (true) if successful, 0 (false) otherwise.
1.19 + """
1.20
1.21 cookie = trans.get_cookie(self.cookie_name)
1.22 if cookie is None or cookie.value is None: