TwistPHP Documentation

changePassword

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

changePasswordChange password, this used when you have both the users old and new password, very useful to ensure the user who is changing
the password is the valid account holder.

Parameters

Name Type Description
$intUserIDintegern/a
$strNewPasswordstringn/a
$strCurrentPasswordstringn/a
[$blRedirectOnFail = true]booleann/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';
$strCurrentPassword 'foo';
$blRedirectOnFail true;

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