kishor10d / Admin-Panel-User-Management-using-CodeIgniter

Admin Panel User Management Demo - CodeIgniter + AdminLTE Theme
http://cias.codeinsect.com
GNU General Public License v3.0
337 stars 240 forks source link

Forgot password mail ok, but link redirect to login #45

Closed janschroeven closed 6 years ago

janschroeven commented 6 years ago

Hi,

I configured your app, which is great, but i cannot get the forgot password to work. If go to forgot password, i correctly get the email with the link, but everytilme i get redirected to the login page.

The token and email in the link are correct, i veriefied them in the database, so $is_correct = $this->login_model->checkActivationDetails($email, $activation_id); should return 1. But for some reason it does not.

Could you please help?

Thanks!

janschroeven commented 6 years ago

Hi,

I found the issue. In the Login_model.php for method checkActivationDetails($email, $activation_id) there was return $query->num_rows; which should be return $query->num_rows();

kishor10d commented 6 years ago

@janschroeven : Hi, thanks for such silly mistake I have done. I just resolved this bug in new commit. Thanks once again.

janschroeven commented 6 years ago

@kishor10d no problem, easy to overlook some brackets :)