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)