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

Tres Seaver tseaver at zope.com
Thu Oct 28 10:08:16 EDT 2004


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

Modified Files:
	ZODBUserManager.py 
Log Message:


  - Clarify interface for IAuthenticationPlugin (the plugin is supposed to
    return None, rather than raising an exception, if asked to authenticate
    an unknown principal).

  - Adjust ZODBUserManager accordingly.


=== Products/PluggableAuthService/plugins/ZODBUserManager.py 1.6 => 1.7 ===
--- Products/PluggableAuthService/plugins/ZODBUserManager.py:1.6	Tue Sep  7 14:15:01 2004
+++ Products/PluggableAuthService/plugins/ZODBUserManager.py	Thu Oct 28 10:08:16 2004
@@ -91,6 +91,10 @@
             return None
 
         userid = self._login_to_userid.get( login, login )
+
+        if userid is None:
+            return None
+
         reference = self._user_passwords[ userid ]
         if AuthEncoding.is_encrypted( reference ):
             if AuthEncoding.pw_validate( reference, password ):



More information about the Zope-CVS mailing list