TwistPHP Documentation

updatePassword

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.

Parameters

Name Type Description
$intUserIDintegern/a
$strNewPasswordstringn/a

Return Values

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

Example

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

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