[eluser]jondavidjohn[/eluser]
I am having an issue with changing user passwords,
Here is the snippet I'm using to do so:
Code:
$password = $this->input->post('password');
$data = array(
'password' => $password
);
print_r($data);
$this->ion_auth->update_user($id,$data);
I am getting this error:
Code:
A Database Error Occurred
You must use the "set" method to update an entry.
and when I print_r($data), I get this:
Code:
Array ( [password] => whateverpasswordItyped )
am I missing something? I thought there was a change_password function, but I couldn't find it in the docs.