File path: dist/twist/Core/Utilities/User.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
changePassword
— Change 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.
Name | Description |
---|---|
$intUserID | n/a |
$strNewPassword | n/a |
$strCurrentPassword | n/a |
[$blRedirectOnFail = true] | n/a |
void — No return information has been documented for this function.
<?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);