Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
PasswordResetTool.interfaces.portal_password_reset.portal_password_reset Class Reference
Inheritance diagram for PasswordResetTool.interfaces.portal_password_reset.portal_password_reset:
Inheritance graph
[legend]
Collaboration diagram for PasswordResetTool.interfaces.portal_password_reset.portal_password_reset:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def requestReset
def resetPassword

Static Public Attributes

tuple id = Attribute('id','Must be set to "portal_password_reset"')

Detailed Description

Defines an interface for a tool that provides a facility to
reset forgotten passwords.

This interface is rather sparse, but sufficient to describe the
task. (In this manner we void being dependant on a specific
process) The details of the process are in the implementation,
where they belong.

Definition at line 13 of file portal_password_reset.py.


Member Function Documentation

Ask the system to start the password reset procedure for
user 'userid'.

Returns the random string that must be used to reset the
password.

Definition at line 24 of file portal_password_reset.py.

00024 
00025     def requestReset(userid):
00026         """Ask the system to start the password reset procedure for
00027         user 'userid'.
00028 
00029         Returns the random string that must be used to reset the
00030         password."""

Set the password (in 'password') for the user who maps to
the string in 'randomstring'. The 'userid' parameter is provided
in case extra authentication is needed.

Definition at line 31 of file portal_password_reset.py.

00031 
00032     def resetPassword(userid, randomstring, password):
00033         """Set the password (in 'password') for the user who maps to
00034         the string in 'randomstring'. The 'userid' parameter is provided
00035         in case extra authentication is needed."""

Member Data Documentation

tuple PasswordResetTool.interfaces.portal_password_reset.portal_password_reset.id = Attribute('id','Must be set to "portal_password_reset"') [static]

Definition at line 22 of file portal_password_reset.py.


The documentation for this class was generated from the following file: