[Zope] how to??

javi lopez javi80mix at gmail.com
Wed Jan 24 10:19:44 EST 2007


hello I want to do it this:

a plugin for PAS to validate users, i put user and password and if user is a
correct user, log in plone.

class ValidaPlugin(BasePlugin, Cacheable):

    meta_type = 'ValidaPlugin'
    security = ClassSecurityInfo()

    def __init__(self, id, title=None):
        self._id = self.id = id
        self.title = title

    security.declarePrivate('authenticateCredentials')
    def authenticateCredentials(self, credentials):
        """ Autentificacion  """

        login = credentials.get( 'login' )
        password = credentials.get( 'password' )

        if login is None or password is None:
            return None


        return login, login


is correct?? Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070124/35355921/attachment.htm


More information about the Zope mailing list