Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verify_updated_email missing an else statment #27

Open
jachno opened this issue Apr 3, 2014 · 0 comments
Open

verify_updated_email missing an else statment #27

jachno opened this issue Apr 3, 2014 · 0 comments

Comments

@jachno
Copy link

jachno commented Apr 3, 2014

HI,

it looks like the verify_updated_email is missing the last part of an if statment. it current dispalys an error even if it has worked correcty

    public function verify_updated_email($user_id, $update_email_token)
{
if ($this->CI->flexi_auth_model->verify_updated_email($user_id, $update_email_token))
{
$this->CI->flexi_auth_model->set_status_message('update_successful', 'config');
return TRUE;
}

$this->CI->flexi_auth_model->set_error_message('update_unsuccessful', 'config');
return FALSE;
}

should be

    public function verify_updated_email($user_id, $update_email_token)
{
if ($this->CI->flexi_auth_model->verify_updated_email($user_id, $update_email_token))
{
$this->CI->flexi_auth_model->set_status_message('update_successful', 'config');
return TRUE;
}
else
{

$this->CI->flexi_auth_model->set_error_message('update_unsuccessful', 'config');
return FALSE;
}
}

this is on line 554 in flexi_auth.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant