Jump to content

[SOLVED] Email an HTTPS address with Encrypted login for users to "Click and Login"


luciogodoy

Recommended Posts

Hi All;

 

I have developed a web site that monitors the state of the user's routers (UP/DOWN & WHY) it has the usual login web page, since the web site monitors the devices and sends emails when there is a problem, i wanted to send an email with an embedded https link, where the user could click and be directed straight onto the web site, without the need to login.

 

I cannot crack this one, could you guys point me onto some tutorial/examples where i could learn how to do it, pls?

 

Thank you

 

Lucio

 

Link to comment
Share on other sites

Doing so would comprimse the security of the account in question.

 

If you wanted to allow access to a certain stat page (and ask them to log in to get complete access to everything else), then you could use a time limited unique key in the URL or something.

 

Eg.

 

https://www.yourservice.com/showalert.php?key=07cc694b9b3fc636710fa08b6922c42bfoo

 

 

You'd have to use a different key every time, and never re-use an old key to limit the possibility of other people getting into that page. Of course, you'd need to have your script generate the key, and store it in a table somewhere, which contains the ID of the login account, etc.

 

Matthew

Link to comment
Share on other sites

Sounds like you got it  ;D

 

I would also personally make the key only work for 48 hours or something though, in case the users email is intercepted. Email is insecure, which is why you shouldnt send passwords through it. Similarly, you shouldnt send an access key (or any other method of account access) unless it is restricted or limited in a way that it doesnt matter if it fell into the wrong hands.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.