In facebook..when u enter correct email address but incorrect passwd..they send u an email with an Instant login button..user can login using that instant login link only once..How did they implement this ? Where can i find its code? I mean how do they find out Instant Login link has been clicked only once ??
Any similar code over internet?
I would implement it as follows.
Create a table called “DirectLogin”
When the login attempt fails, create a new record in
DirectLogintable.Send the email with link
When the user clicks the link, check if the GUID and email address match the record in the table.
If it does, log them in and delete the record