Welcome Guest, Not a member yet? Register   Sign In
Community auth password recovery form not sending email instruction
#1
Rainbow 

Hi

I am using community auth for authentication and it is awesome. Thanks for the awesome work.

However, when i use the password recovery form, it is not sending email instruction to my email. Am i missing something here?
Reply
#2

Yes. By default the Examples controller is just to familiarize yourself with how Community Auth works, but not how CodeIgniter works, and during password recovery simply prints the instructions to the screen instead of sending an email. This is to reduce the amount of code written and keep your focus on learning Community Auth. On line 341 you see this:

Code:
$view_data['special_link'] = anchor(
     site_url( $link_uri, $link_protocol ),
     site_url( $link_uri, $link_protocol ),
     'target ="_blank"'
);

This "special_link" is sent to the view, examples/recover_form.php. This is of course not how you would do it for a real website, but handy when on a development environment and learning Community Auth.

In your own implementation of user recovery, you would put this "special_link" into an email, or maybe even a text message, and not print it to screen via a view.

I can see how this may be confusing, and will make sure to add something so it is clear for future users.
Reply
#3

Here is what I did to attempt to make this issue clear to developers:

https://bitbucket.org/skunkbad/community...32a2cef9fb
Reply
#4

Thank you so much skunkbad. Love your auth lib. Keep up the good work. I am thinking if you can integrate mailgun to send a simple email for password recovery. It is simple to integrate and I am sure the community will love it. https://documentation.mailgun.com/api-se...l#examples
Reply
#5

(04-16-2016, 03:22 AM)cytey Wrote: Thank you so much skunkbad. Love your auth lib. Keep up the good work. I am thinking if you can integrate mailgun to send a simple email for password recovery. It is simple to integrate and I am sure the community will love it. https://documentation.mailgun.com/api-se...l#examples

The focus of Community Auth is to authenticate, and doing password recovery is already kind of stepping outside the box. Actually sending the email would be taking it even further, and while you may prefer mail gun, some might say swiftmailer, while others just use CI's email library. See, that's why it's not going to happen. Also, for some that are on a dev environment with no email server, then they might get an error, and come here trying to figure out what is wrong. Keeping it the way it is now means less confusion.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB