ePages 6.10 - DE_EPAGES/MailType/API/NewPassword.pm

Package DE_EPAGES::MailType::API::NewPassword

Resets the password of a user and sends the new password by e-mail.

@EXPORT_OK
SendNewPasswordToken

Functions

SendNewPasswordToken

SendNewPasswordToken

Creates a random token for the user and sends it as url to the users's e-mail address.

Syntax
$Success = SendNewPasswordToken( $User, $Url, $MailType );
$Success = SendNewPasswordToken( $User, $Url, $MailType, $hMailParams );
Input
$User (object)
user object
$Url (string)
url with viewaction to site to change password
$MailType (object)
e-mail event
$hMailParams (ref.hash)
(optional) e-mail parameters, see
DE_EPAGES::Mail::API::Mail::new
Return
$Success (boolean)
true if successful