[eluser]jark[/eluser]
I'm having some trouble just getting the default reset password link to work. I configured ion_auth to use username as the identity, but the problem persists even if I change the identity to email.
If I surf to auth/forgot_password and enter in a valid identity - an identity I've used to successfully login with - the following errors are spit out:
Code:
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: libraries/Ion_auth.php
Line Number: 195
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: libraries/Ion_auth.php
Line Number: 196
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: libraries/Ion_auth.php
Line Number: 205
It does not matter the usage/configuration combo for identity. If configured for username, if I enter either username or password (even though it explicitly asks for a password) it errors out. The same happens when configured for email.
I've not made any changes to the library file, but here are the applicable lines:
Code:
195: 'identity' => $user->{$this->ci->config->item('identity', 'ion_auth')},
196: 'forgotten_password_code' => $user->forgotten_password_code
197: );
198:
199: $message = $this->ci->load->view($this->ci->config->item('email_templates', 'ion_auth').$this->ci->config->item('email_forgot_password', 'ion_auth'), $data, true);
200: $this->ci->email->clear();
201: $config['mailtype'] = $this->ci->config->item('email_type', 'ion_auth');
202: $this->ci->email->initialize($config);
203: $this->ci->email->set_newline("\r\n");
204: $this->ci->email->from($this->ci->config->item('admin_email', 'ion_auth'), $this->ci->config->item('site_title', 'ion_auth'));
205: $this->ci->email->to($user->email);
Any ideas what I either might be doing wrong or could do to fix? Thanks in advance!