ePages 7.19.0 - 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
GetUserNewPasswordUrl

Functions

GetUserNewPasswordUrl
SendNewPasswordToken

GetUserNewPasswordUrl

Returns an url for password change and creates a random token for the user.

Syntax
$Url = GetUserNewPasswordUrl($Shop, $User);
Input
$Shop (object)
shop object
$User (object)
user object
Return
$Url (string)
url to set up new password with new verification token

SendNewPasswordToken

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

Syntax
$Success = SendNewPasswordToken( $Shop, $User, $MailType );
$Success = SendNewPasswordToken( $Shop, $User, $MailType, $hMailParams );
Input
$Shop (object)
shop object
$User (object)
user object
$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