Welcome Guest, Not a member yet? Register   Sign In
Redux Auth Forgotten Password problem
#2

[eluser]jacobkball[/eluser]
I was able to solve this, after quite a while :-) (with some help from a post on the 'issues' section on the Google Code site where Redux is hosted.

I did it this way:

Code:
public function profile($identity = false, $id_col = false)
{
    $users_table     = $this->tables['users'];
    $groups_table    = $this->tables['groups'];
    $meta_table      = $this->tables['meta'];
    $meta_join       = $this->config->item('join');
    if (!empty($id_col))
        $identity_column = $id_col;
    else
        $identity_column = $this->config->item('identity');

and then called:

$profile = $this->ci->redux_auth_model->profile($email, 'email');

in the forgotten_password function.

This allows you to send an email address to the profile function, even when you have selected username as your config identity.

The problem arises because the original code sends an email address, but compares it against the config identity variable (which can be username), so it never succeeds to return a profile object.

I hope it helps someone else, and I hope the Redux author is able to sort it out in his next release :-)

Cheers,
Jacob


Messages In This Thread
Redux Auth Forgotten Password problem - by El Forum - 12-28-2009, 04:02 AM
Redux Auth Forgotten Password problem - by El Forum - 12-29-2009, 03:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB