From 9661f621552d4607acb44dc3309f78533136ec20 Mon Sep 17 00:00:00 2001 From: helmutm Date: Tue, 29 Sep 2009 14:56:52 +0000 Subject: [PATCH] provide password retrieval for person-based authenticator git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@3565 fd906abe-77d9-0310-91a1-e0d9ade77398 --- organize/auth.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/organize/auth.py b/organize/auth.py index 24690a1..f98dd61 100644 --- a/organize/auth.py +++ b/organize/auth.py @@ -93,6 +93,11 @@ class PersonBasedAuthenticator(Persistent, Contained): getParent(self).prefix + self.prefix + login) pa[self.passwordKey] = password + def getPassword(self, login): + pa = self.getPrincipalAnnotations( + getParent(self).prefix + self.prefix + login) + return pa.get(self.passwordKey) + def getPrincipalAnnotations(self, id): utility = component.getUtility(IPrincipalAnnotationUtility) return utility.getAnnotationsById(id)