Grant access to 3rd party for a single record
Posted: Mon Mar 08, 2010 6:37 am
Hello,
I have a table with details of my prospects and customers.
I would like to be able to generate a link when I add or update a customer to my database which is sent by email to the customer so they can edit, but not delete their details.
I will use afterupdate or similar function in my tbl_organisations table delegate class, where $message contains a link:
Is there a way to automatically grant access to a specific record by means of a randomly generated username & password, so they will receive a link by email inviting them to update their details?
Hope the question is clear.
Many thanks, Tom
I have a table with details of my prospects and customers.
I would like to be able to generate a link when I add or update a customer to my database which is sent by email to the customer so they can edit, but not delete their details.
I will use afterupdate or similar function in my tbl_organisations table delegate class, where $message contains a link:
- Code: Select all
function afterUpdate(&$record){
//gets current logged in user//
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
mail($to, $subject, $message, $headers);
}
Is there a way to automatically grant access to a specific record by means of a randomly generated username & password, so they will receive a link by email inviting them to update their details?
Hope the question is clear.
Many thanks, Tom