TwistPHP Documentation

resetPassword

File path: dist/twist/Core/Models/User/User.model.php
Namespace: Twist\Core\Models\User
Extends:

resetPasswordWhen the user has forgotten their password this function will easily allow a new password to be generated and and email with the users new temp password to be sent to their address.

Parameters

Name Type Description
[$blOverrideSendEmail = false]booleann/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$blOverrideSendEmail false;

//Call the function resetPassword with the example vars
$resUser = new \Twist\Core\Models\User\User();
$resUser -> resetPassword($blOverrideSendEmail);