![]() |
Error When Using Password Reset Function With Ion_auth | Have Username Identity - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Error When Using Password Reset Function With Ion_auth | Have Username Identity (/showthread.php?tid=44340) |
Error When Using Password Reset Function With Ion_auth | Have Username Identity - El Forum - 08-11-2011 [eluser]phpmonster[/eluser] Am using the username as the identity instead of 'email'. when I run the password reset function inputting an email. it throws an error: Message: Trying to get property of non-object Filename: libraries/Ion_auth.php Line Number: 195 CONTROLLER Code: //forgot password LIB Code: public function forgotten_password($identity) //changed $email to $identity Error When Using Password Reset Function With Ion_auth | Have Username Identity - El Forum - 08-11-2011 [eluser]atw[/eluser] Hi phpmonster, Surely if you are using username as the ion_auth identity you need to pass the username through to forgotten_password()? Or am I missing something? Error When Using Password Reset Function With Ion_auth | Have Username Identity - El Forum - 08-11-2011 [eluser]phpmonster[/eluser] I tried that, it didn't work. It looks like the model is expecting an email. Error When Using Password Reset Function With Ion_auth | Have Username Identity - El Forum - 08-12-2011 [eluser]atw[/eluser] Well it seems logical that it would demand an email, since that is how the password change will be sent to the user...? Why not just ask your users to give it their email address? |