Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]Lucas Alves[/eluser]
@jsherk ... To do this, you need to compare the session with the db, what will fall in the same question...

thanks

[eluser]jsherk[/eluser]
@Lucas ... I thought my answer was too obvious!

[eluser]InsiteFX[/eluser]
Look at UNIX Permissions hint

InsiteFX

[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.

[eluser]Lucas Alves[/eluser]
You could use the function change_password($identity, $old, $new)...

You just need to pass the identity from who you want to change the password, the old password and the new password...

[eluser]jondavidjohn[/eluser]
figured as much.

I'm looking for more of an administrative password reset.

Should I just formulate it using hash_password() and manually update the database?

If there is a way to do it within the ion_auth framework I'd like to do that before I try and brute force it.

[eluser]jsherk[/eluser]
Did you look at the forgotten_password() and forgotten_password_completed() functions?

[eluser]Rolly1971[/eluser]
the password reset works the same for admins and regular members alike. the admin can use the regular members password reset form/functions. if you want a stand alone setup for the admin look at the template forms that come with ion auth.

[eluser]jondavidjohn[/eluser]
I understand that, my purpose was to have it set up where the admin did not have to know the users password to reset it.

[eluser]Rolly1971[/eluser]
just follow how the users password reset is done and duplicate that for the admin.




Theme © iAndrew 2016 - Forum software by © MyBB