How to properly secure laravel newsletter subscription? -


i have newsletter powered laravel application. lets subscribers select area , set filters receive mail notifications on new housing sale.

to solve in easy way user did not want use passwords , long registration process names etc. instead, email, in email there edit link secret token:

https://myapp.com/subscribers/42/edit?token=gwoi6n4ginagrpoargp4ar5gp14a

would considered safe approach? when user clicks link, on https encrypted, still show in current browsers history..

will flamed doing , if ways improve it?

with encrypted data in ssl communications yes it's safe. in opinion there offers:

1-remove token word address.

2- link should not show user edit page directly. instead sends arguments controller , controller redirects user new page clean link. save token in page authorizing user.

3- why not produce longer (just bit longer!) tokens?

4- being safer each link should have expire time. new link sent each newsletter mail.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -