[Zope-CVS] CVS: Products/PluggableAuthService -
PluggableAuthService.py:1.28
Tres Seaver
tseaver at zope.com
Fri Jan 28 11:12:30 EST 2005
Update of /cvs-repository/Products/PluggableAuthService
In directory cvs.zope.org:/tmp/cvs-serv1386
Modified Files:
PluggableAuthService.py
Log Message:
- Make 'getUserById' pass the 'login' to '_findUser', so that
the returned user object can answer 'getUserName' sanely.
=== Products/PluggableAuthService/PluggableAuthService.py 1.27 => 1.28 ===
--- Products/PluggableAuthService/PluggableAuthService.py:1.27 Thu Jan 27 14:00:22 2005
+++ Products/PluggableAuthService/PluggableAuthService.py Fri Jan 28 11:11:59 2005
@@ -220,11 +220,12 @@
else:
if user_info:
user_id = id
+ login = user_info[0].get( 'login' )
if not user_id:
return default
- return self._findUser( plugins, user_id )
+ return self._findUser( plugins, user_id, login )
security.declarePublic( 'validate' ) # XXX: public?
def validate( self, request, auth='', roles=_noroles ):
More information about the Zope-CVS
mailing list