2016-05-26, 09:40 PM
So I'm trying to update the users PW from my plugin.
This is the code:
The error I get:
Fatal error: Call to undefined function generate_salt() in C:\xampp\htdocs\inc\datahandlers\user.php on line 219
The strange thing is that the insert part (creating user) works fine, so why doesnt this pw update?
Any ideas guyes?
Thanks!
This is the code:
// Generate Password
$p_Password = random_str(15);
require_once './inc/datahandlers/user.php';
$userhandler = new UserDataHandler("update");
$p_user = array(
"uid" => $p_UID,
"password" => $p_Password,
"password2" => $p_Password
);
$userhandler->set_data($p_user);
$errors = '';
if(!$userhandler->validate_user())
{
$errors = $userhandler->get_friendly_errors();
}
$userhandler->update_user();
The error I get:
Fatal error: Call to undefined function generate_salt() in C:\xampp\htdocs\inc\datahandlers\user.php on line 219
The strange thing is that the insert part (creating user) works fine, so why doesnt this pw update?
Any ideas guyes?
Thanks!