TwistPHP Documentation


File path: dist/twist/Core/Utilities/User.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

updatePasswordUpdate the users password to a new password. THis is the non secure method for when you don't know the users original password.
Default use would be for a forgotten password system etc.


Name Type Description

Return Values

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


//Set the variables for the example
$intUserID 124;
$strNewPassword 'foo';

//Call the function updatePassword with the example vars
Twist::User() -> updatePassword($intUserID$strNewPassword);