[Zope-CVS] CVS: Products/PluggableAuthService/plugins -
CookieAuthHelper.py:1.7.2.1
Zachery Bir
zbir at urbanape.com
Mon Oct 11 11:16:56 EDT 2004
Update of /cvs-repository/Products/PluggableAuthService/plugins
In directory cvs.zope.org:/tmp/cvs-serv5330
Modified Files:
Tag: pre-1_0_3-zbir-challenge-branch
CookieAuthHelper.py
Log Message:
variable is 'resp' locally, not 'response'
=== Products/PluggableAuthService/plugins/CookieAuthHelper.py 1.7 => 1.7.2.1 ===
--- Products/PluggableAuthService/plugins/CookieAuthHelper.py:1.7 Fri Sep 24 12:49:18 2004
+++ Products/PluggableAuthService/plugins/CookieAuthHelper.py Mon Oct 11 11:16:55 2004
@@ -104,7 +104,7 @@
if cookie:
cookie_val = decodestring(cookie)
login, password = cookie_val.split(':')
-
+
creds['login'] = login
creds['password'] = password
else:
@@ -145,7 +145,7 @@
def updateCredentials(self, request, response, login, new_password):
""" Respond to change of credentials (NOOP for basic auth). """
cookie_val = encodestring('%s:%s' % (login, new_password))
-
+
response.setCookie(self.cookie_name, cookie_val, path='/')
@@ -175,7 +175,7 @@
# Redirect if desired.
url = self.getLoginURL()
if url is not None:
- response.redirect(url)
+ resp.redirect(url, lock=1)
return 1
# Could not challenge.
More information about the Zope-CVS
mailing list