[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Security/Registries - PrincipalRegistry.py:1.3

Itamar Shtull-Trauring zope@itamarst.org
Fri, 6 Dec 2002 08:12:39 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Security/Registries
In directory cvs.zope.org:/tmp/cvs-serv5098/App/Security/Registries

Modified Files:
	PrincipalRegistry.py 
Log Message:
update IAuthenticateService for requirements of generic implementation

=== Zope3/lib/python/Zope/App/Security/Registries/PrincipalRegistry.py 1.2 => 1.3 ===
--- Zope3/lib/python/Zope/App/Security/Registries/PrincipalRegistry.py:1.2	Mon Jul 15 18:01:10 2002
+++ Zope3/lib/python/Zope/App/Security/Registries/PrincipalRegistry.py	Fri Dec  6 08:12:09 2002
@@ -43,7 +43,7 @@
                 if p is not None:
                     password = a.getPassword()
                     if p.validate(password):
-                        return p.getId()
+                        return p
         return None
 
     __defaultid = None
@@ -59,7 +59,7 @@
         return p
 
     def unauthenticatedPrincipal(self):
-        return self.__defaultid
+        return self.__defaultObject
 
     def unauthorized(self, id, request):
         # XXX This is a mess. request has no place here!