benedmunds / CodeIgniter-Ion-Auth

Simple and Lightweight Auth System for CodeIgniter
http://benedmunds.com/ion_auth/
MIT License
2.35k stars 1.14k forks source link

Update docs #1547

Closed ghost closed 2 years ago

ghost commented 2 years ago

I think the documentation needs to be updated, Please update immediately because I followed the documentation there are some that don't work,,Such as the logged_in function,,Why can't I,,, it works when I use loggedIn()

datamweb commented 2 years ago

I think the documentation needs to be updated, Please update immediately because I followed the documentation there are some that don't work,,Such as the logged_in function,,Why can't I,,, it works when I use loggedIn()

Hi,Please download and use its userguide. This is for version CI4.x .

avenirer commented 2 years ago

Here's what. Asking for something to be done "immediately" is not helping anyone. It's open source what you are using here. Everyone does his/her best to help, without getting anything in return, but the ocasional "thanks". In this community we expect that if someone is using the code, he/she also has the good sense of helping out, either by fixing bugs, or by helping with documentation, or even by promoting the code in articles. :)

benedmunds commented 2 years ago

Closing this since it looks like you were using the v3 docs with v4 code. Feel free to submit a PR if you find any issues in the v4 docs.

ghost commented 2 years ago

thanks

ghost commented 2 years ago

I want to ask, the forgottenPassword() and forgottenPasswordCheck() functions don't reset the password, the forgottenPassword() function only sends an email to reset the password, and the forgottenPassword() function checks the code, Means I need to make my own to update users' passwords?

benedmunds commented 2 years ago

Hey. The forgottenPassword method sets the hash for that but the user needs to set their actual new password.

You can see an example of this workflow in the included controller:

forgot_password: https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/4/Controllers/Auth.php#L271

->

reset_password: https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/4/Controllers/Auth.php#L351