I’m fairly new to user authentication, but have built some standard user authentication processes in PHP. To get to the point I’ve been tasked to build a system that we can send out a mass e-mail blast to users that includes a link which the user can click on and be directly logged into the system.
I will probably be building this using codeigniter. If anyone could provide some direction on a procedure to follow or some tutorials on this it would be extremely helpful. Note: if they’re not codeigniter specific that is completely fine.
The simplest way to do this would be to generate a hash based on the username and some kind of salt, and then put a link in the email something like
http://some.url/loggedin.php?email=<email>&hash=<hash>that way the email can be used to look up the record in the db easily and the hash can be compared.Hope that helps