[Zope-CVS] CVS: Products/PluggableAuthService/plugins - ZODBUserManager.py:1.6

Zachery Bir zbir at urbanape.com
Tue Sep 7 14:15:02 EDT 2004


Update of /cvs-repository/Products/PluggableAuthService/plugins
In directory cvs.zope.org:/tmp/cvs-serv21383

Modified Files:
	ZODBUserManager.py 
Log Message:
Contract for IAuthenticationPlugin is to return a bare None if we
can't authenticate, not (None, None)


=== Products/PluggableAuthService/plugins/ZODBUserManager.py 1.5 => 1.6 ===
--- Products/PluggableAuthService/plugins/ZODBUserManager.py:1.5	Mon Aug 30 11:28:45 2004
+++ Products/PluggableAuthService/plugins/ZODBUserManager.py	Tue Sep  7 14:15:01 2004
@@ -88,7 +88,7 @@
         password = credentials.get( 'password' )
 
         if login is None or password is None:
-            return (None, None)
+            return None
 
         userid = self._login_to_userid.get( login, login )
         reference = self._user_passwords[ userid ]
@@ -102,7 +102,7 @@
         if reference == digested:
             return userid, login
 
-        return (None, None)
+        return None
 
     #
     #   IUserEnumerationPlugin implementation



More information about the Zope-CVS mailing list